We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 0b248dc commit ab4b38cCopy full SHA for ab4b38c
src/analysis/processing/qgsalgorithmpolygonstolines.cpp
@@ -134,7 +134,8 @@ QList<QgsCurve *> QgsPolygonsToLinesAlgorithm::extractRings( const QgsAbstractGe
134
}
135
else if ( QgsCurvePolygon *polygon = qgsgeometry_cast<QgsCurvePolygon *>( geom ) )
136
{
137
- rings.append( polygon->exteriorRing()->clone() );
+ if ( auto exteriorRing = polygon->exteriorRing() )
138
+ rings.append( exteriorRing->clone() );
139
for ( int i = 0; i < polygon->numInteriorRings(); ++i )
140
141
rings.append( polygon->interiorRing( i )->clone() );
0 commit comments