Skip to content
Permalink
Browse files

Do not dereference null pointer on QgsSelectedFeature::updateGeometry

Fixes #14188
  • Loading branch information
Sandro Santilli
Sandro Santilli committed Feb 1, 2016
1 parent 5ba6e68 commit 781c9d7fc2c144b94be16c23522da8ae1ce0e63d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/nodetool/qgsselectedfeature.cpp
@@ -78,7 +78,7 @@ void QgsSelectedFeature::updateGeometry( QgsGeometry *geom )
{
QgsFeature f;
mVlayer->getFeatures( QgsFeatureRequest().setFilterFid( mFeatureId ) ).nextFeature( f );
mGeometry = new QgsGeometry( *f.geometry() );
mGeometry = f.geometry() ? new QgsGeometry( *f.geometry() ) : nullptr;
}
else
{

0 comments on commit 781c9d7

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