Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 14, 2017
1 parent 0df873c commit f9ba905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.cpp
Expand Up @@ -705,7 +705,7 @@ QgsGeometry::OperationResult QgsGeometry::addPart( const QgsGeometry &newPart )
{
return QgsGeometry::InvalidBaseGeometry;
}
if ( !newPart.d || !newPart.d->geometry )
if ( !newPart || !newPart.d->geometry )
{
return QgsGeometry::AddPartNotMultiGeometry;
}
Expand Down

0 comments on commit f9ba905

Please sign in to comment.