Skip to content

Commit

Permalink
Merge pull request #32202 from sbrunner/fix-core-dump
Browse files Browse the repository at this point in the history
[Backport release-3_4][server] Fix crach on WFS Insert
  • Loading branch information
rldhont committed Oct 16, 2019
2 parents d343972 + 44afef8 commit a11903a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfstransaction_1_0_0.cpp
Expand Up @@ -241,7 +241,7 @@ namespace QgsWfs
for ( int i = 0; i < wfsLayerIds.size(); ++i )
{
QgsMapLayer *layer = project->mapLayer( wfsLayerIds.at( i ) );
if ( layer->type() != QgsMapLayer::LayerType::VectorLayer )
if ( !layer || layer->type() != QgsMapLayer::LayerType::VectorLayer )
{
continue;
}
Expand Down

0 comments on commit a11903a

Please sign in to comment.