Skip to content

Commit

Permalink
[BUGFIX][Server] Segfault in WFS GetCapabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Apr 10, 2018
1 parent 4a885e6 commit c625f95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/services/wfs/qgswfsgetcapabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ namespace QgsWfs
for ( const QString &wfsLayerId : wfsLayerIds )
{
QgsMapLayer *layer = project->mapLayer( wfsLayerId );
if ( !layer )
{
continue;
}
if ( layer->type() != QgsMapLayer::LayerType::VectorLayer )
{
continue;
Expand Down
4 changes: 4 additions & 0 deletions src/server/services/wfs/qgswfsgetcapabilities_1_0_0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ namespace QgsWfs
for ( const QString &wfsLayerId : wfsLayerIds )
{
QgsMapLayer *layer = project->mapLayer( wfsLayerId );
if ( !layer )
{
continue;
}
if ( layer->type() != QgsMapLayer::LayerType::VectorLayer )
{
continue;
Expand Down

0 comments on commit c625f95

Please sign in to comment.