Skip to content

Commit 04ef496

Browse files
committedApr 12, 2018
[BUGFIX][Server] Segfault in WFS Transaction
1 parent 3183107 commit 04ef496

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/server/services/wfs/qgswfstransaction.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ namespace QgsWfs
250250
for ( int i = 0; i < wfsLayerIds.size(); ++i )
251251
{
252252
QgsMapLayer *layer = project->mapLayer( wfsLayerIds.at( i ) );
253+
if ( !layer )
254+
{
255+
continue;
256+
}
253257
if ( layer->type() != QgsMapLayer::LayerType::VectorLayer )
254258
{
255259
continue;

0 commit comments

Comments
 (0)
Please sign in to comment.