Skip to content

Commit

Permalink
[processing] Fix pixel centroids along lines handling of null geometries
Browse files Browse the repository at this point in the history
(cherry picked from commit 9e1bf68)
  • Loading branch information
nyalldawson committed Dec 18, 2018
1 parent 5edf482 commit 904c797
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/qgis/PointsFromLines.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def processAlgorithm(self, parameters, context, feedback):
for current, f in enumerate(features):
if feedback.isCanceled():
break

if not f.hasGeometry():
continue

geom = f.geometry()
if geom.isMultipart():
lines = geom.asMultiPolyline()
Expand Down

0 comments on commit 904c797

Please sign in to comment.