Skip to content

Commit

Permalink
[Geometry checker] Fix possible crash when checking for removed layer
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 14, 2016
1 parent 120bdb7 commit 41ce527
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ void QgsGeometryCheckerResultTab::storeDefaultResolutionMethod( int id ) const

void QgsGeometryCheckerResultTab::checkRemovedLayer( const QStringList &ids )
{
if ( ids.contains( mFeaturePool->getLayer()->id() ) && isEnabled() )
if ( mFeaturePool->getLayer() && ids.contains( mFeaturePool->getLayer()->id() ) && isEnabled() )
{
if ( mTabWidget->currentWidget() == this )
{
Expand Down

0 comments on commit 41ce527

Please sign in to comment.