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 55f44ae commit 9052bb319fb9358f224e65653bff9a31fbdd9002
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() )

0 comments on commit 9052bb3

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