Skip to content
Permalink
Browse files

Fix Coverity null pointer dereference warning

  • Loading branch information
nyalldawson committed Apr 19, 2018
1 parent a463858 commit 16465cb38ede3cb8e3426905bd5813c0897a89e6
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/analysis/processing/qgsalgorithmexplode.cpp
@@ -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:

0 comments on commit 16465cb

Please sign in to comment.
You can’t perform that action at this time.