Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix possible null pointer dereference
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent 545da60 commit eb742bd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/qgisapp.cpp
Expand Up @@ -7066,11 +7066,10 @@ void QgisApp::setupLayoutManagerConnections()
connect( manager, &QgsLayoutManager::compositionAdded, this, [ = ]( const QString & name )
{
QgsComposition *c = QgsProject::instance()->layoutManager()->compositionByName( name );
if ( c )
{
mAtlasFeatureActions.insert( c, nullptr );
}
if ( !c )
return;

mAtlasFeatureActions.insert( c, nullptr );
connect( c, &QgsComposition::nameChanged, this, [this, c]( const QString & name )
{
QgsMapLayerAction *action = mAtlasFeatureActions.value( c );
Expand Down

0 comments on commit eb742bd

Please sign in to comment.