Skip to content

Commit

Permalink
Null pointer check for the layer tree model
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Sep 19, 2017
1 parent 026b9b0 commit 0598be4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/layertree/qgslayertreemodel.cpp
Expand Up @@ -767,6 +767,9 @@ void QgsLayerTreeModel::nodeLayerWillBeUnloaded()

void QgsLayerTreeModel::layerLegendChanged()
{
if ( !mRootNode )
return;

if ( !testFlag( ShowLegend ) )
return;

Expand Down

0 comments on commit 0598be4

Please sign in to comment.