Skip to content

Commit 16465cb

Browse files
committed
Fix Coverity null pointer dereference warning
1 parent a463858 commit 16465cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/analysis/processing/qgsalgorithmexplode.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ std::vector<QgsGeometry> QgsExplodeAlgorithm::extractAsParts( const QgsGeometry
128128
std::vector<QgsGeometry> QgsExplodeAlgorithm::curveAsSingleSegments( const QgsCurve *curve, bool useCompoundCurves ) const
129129
{
130130
std::vector<QgsGeometry> parts;
131+
if ( !curve )
132+
return parts;
131133
switch ( QgsWkbTypes::flatType( curve->wkbType() ) )
132134
{
133135
case QgsWkbTypes::LineString:

0 commit comments

Comments
 (0)