Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[PROCESSING] Avoid run-time error
if intersection geometry is None (happens IMHO if geometries are not valid)
  • Loading branch information
Bernhard Ströbl committed Apr 16, 2015
1 parent c9ec4d4 commit af64ae9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Eliminate.py
Expand Up @@ -243,6 +243,9 @@ def processAlgorithm(self, progress):
# We have a candidate
iGeom = geom2Eliminate.intersection(selGeom)

if iGeom == None:
continue

if boundary:
selValue = iGeom.length()
else:
Expand Down

0 comments on commit af64ae9

Please sign in to comment.