Skip to content
Permalink
Browse files

Don't crash when loading a project with unreachable wfs layers

  • Loading branch information
elpaso committed Mar 6, 2018
1 parent 05484dc commit 283f3b8e33ce808bcbf518230c299f10d86a53a3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/layertree/qgslayertreemapcanvasbridge.cpp
@@ -109,7 +109,7 @@ void QgsLayerTreeMapCanvasBridge::setCanvasLayers( QgsLayerTreeNode *node, QList
if ( QgsLayerTree::isLayer( node ) )
{
QgsLayerTreeLayer *nodeLayer = QgsLayerTree::toLayer( node );
if ( nodeLayer->layer()->isSpatial() )
if ( nodeLayer->layer() && nodeLayer->layer()->isSpatial() )
{
allLayers << nodeLayer->layer();
if ( nodeLayer->isVisible() )

2 comments on commit 283f3b8

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson replied Mar 6, 2018

@elpaso this will need backporting to 3.0 also

@elpaso

This comment has been minimized.

Copy link
Contributor Author

@elpaso elpaso replied Mar 7, 2018

done, thanks for reminding me

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