Skip to content
Permalink
Browse files

fix crash when right-clicking on geometryless layers

  • Loading branch information
nirvn committed Jun 12, 2016
1 parent f1ec121 commit 054604bc709129efbc05098f09cacd8f0204efe9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsapplayertreeviewmenuprovider.cpp
@@ -148,7 +148,7 @@ QMenu* QgsAppLayerTreeViewMenuProvider::createContextMenu()
if ( vlayer )
{
const QgsSingleSymbolRendererV2* singleRenderer = dynamic_cast< const QgsSingleSymbolRendererV2* >( vlayer->rendererV2() );
if ( !singleRenderer && vlayer->rendererV2()->embeddedRenderer() )
if ( !singleRenderer && vlayer->rendererV2() && vlayer->rendererV2()->embeddedRenderer() )
{
singleRenderer = dynamic_cast< const QgsSingleSymbolRendererV2* >( vlayer->rendererV2()->embeddedRenderer() );
}

0 comments on commit 054604b

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