Skip to content
Permalink
Browse files

WMS Server: Test null pointer

  • Loading branch information
mhugent committed Jun 25, 2020
1 parent 1eddb99 commit 8ab74ce2d609f2401555591839c9f25dc2c9d61d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -988,7 +988,7 @@ namespace QgsWms
{
QgsLayerTreeLayer *treeLayer = static_cast<QgsLayerTreeLayer *>( treeNode );
QgsMapLayer *l = treeLayer->layer();
if ( restrictedLayers.contains( l->name() ) ) //unpublished layer
if ( !l || restrictedLayers.contains( l->name() ) ) //unpublished layer
{
continue;
}

0 comments on commit 8ab74ce

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