Skip to content
Permalink
Browse files

Fix crash when selecting a null layer

Happens for instance when a embedded layer is added but
dependent layers cannot be resolved
  • Loading branch information
Hugo Mercier
Hugo Mercier committed Feb 17, 2016
1 parent a44c890 commit baaeedfe3592aba6c22ddb77c960222b3cadb604
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -9772,7 +9772,7 @@ void QgisApp::legendLayerSelectionChanged( void )
if ( selectedLayers.size() == 1 )
{
QgsLayerTreeLayer* l = selectedLayers.front();
if ( l->layer()->type() == QgsMapLayer::VectorLayer )
if ( l->layer() && l->layer()->type() == QgsMapLayer::VectorLayer )
{
mLegendExpressionFilterButton->setEnabled( true );
bool exprEnabled;

0 comments on commit baaeedf

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