Skip to content

Commit

Permalink
[BUGFIX][Server] Segfault in WFS DescribeFeatureType and GetFetaure
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Apr 12, 2018
1 parent 6cf1433 commit 91a229b
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/qgswfsdescribefeaturetype.cpp
Expand Up @@ -130,6 +130,10 @@ namespace QgsWfs
for ( int i = 0; i < wfsLayerIds.size(); ++i )
{
QgsMapLayer *layer = project->mapLayer( wfsLayerIds.at( i ) );
if ( !layer )
{
continue;
}
if ( layer->type() != QgsMapLayer::LayerType::VectorLayer )
{
continue;
Expand Down
4 changes: 4 additions & 0 deletions src/server/services/wfs/qgswfsgetfeature.cpp
Expand Up @@ -132,6 +132,10 @@ namespace QgsWfs
for ( int i = 0; i < wfsLayerIds.size(); ++i )
{
QgsMapLayer *layer = project->mapLayer( wfsLayerIds.at( i ) );
if ( !layer )
{
continue;
}
if ( layer->type() != QgsMapLayer::LayerType::VectorLayer )
{
continue;
Expand Down

0 comments on commit 91a229b

Please sign in to comment.