Skip to content

Commit

Permalink
[processing] Make polygons to lines NULL aware
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Feb 4, 2016
1 parent 1205082 commit a3d3ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/PolygonsToLines.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def processAlgorithm(self, progress):
def extractAsLine(self, geom):
multiGeom = QgsGeometry()
lines = []
if geom.type() == QGis.Polygon:
if geom and geom.type() == QGis.Polygon:
if geom.isMultipart():
multiGeom = geom.asMultiPolygon()
for i in multiGeom:
Expand Down

0 comments on commit a3d3ffd

Please sign in to comment.