Skip to content

Commit

Permalink
[BUGFIX][Server] Segfault in WFS Transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Apr 12, 2018
1 parent 3183107 commit 04ef496
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/services/wfs/qgswfstransaction.cpp
Expand Up @@ -250,6 +250,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 04ef496

Please sign in to comment.