Skip to content

Commit

Permalink
Fix Coverity null pointer dereference warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 19, 2018
1 parent a463858 commit 16465cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmexplode.cpp
Expand Up @@ -128,6 +128,8 @@ std::vector<QgsGeometry> QgsExplodeAlgorithm::extractAsParts( const QgsGeometry
std::vector<QgsGeometry> QgsExplodeAlgorithm::curveAsSingleSegments( const QgsCurve *curve, bool useCompoundCurves ) const
{
std::vector<QgsGeometry> parts;
if ( !curve )
return parts;
switch ( QgsWkbTypes::flatType( curve->wkbType() ) )
{
case QgsWkbTypes::LineString:
Expand Down

0 comments on commit 16465cb

Please sign in to comment.