Skip to content
Permalink
Browse files

Merge pull request #37410 from mhugent/wms_server_fix_crash

WMS Server: Test null pointer
  • Loading branch information
mhugent committed Jun 25, 2020
2 parents 1eddb99 + 8ab74ce commit 5936249b722b514a741adb22ffab8639a943c4a6
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 5936249

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