Skip to content

Commit af64ae9

Browse files
author
Bernhard Ströbl
committedApr 16, 2015
[PROCESSING] Avoid run-time error
if intersection geometry is None (happens IMHO if geometries are not valid)
1 parent c9ec4d4 commit af64ae9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎python/plugins/processing/algs/qgis/Eliminate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ def processAlgorithm(self, progress):
243243
# We have a candidate
244244
iGeom = geom2Eliminate.intersection(selGeom)
245245

246+
if iGeom == None:
247+
continue
248+
246249
if boundary:
247250
selValue = iGeom.length()
248251
else:

0 commit comments

Comments
 (0)
Please sign in to comment.