Skip to content
Permalink
Browse files

[Geometry checker] Fix possible crash when checking for removed layer

  • Loading branch information
manisandro committed Jul 14, 2016
1 parent 120bdb7 commit 41ce5279dd289ed5e98f9f4a2935620c4a3ed5a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/geometry_checker/ui/qgsgeometrycheckerresulttab.cpp
@@ -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 )
{

0 comments on commit 41ce527

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