Skip to content

Commit

Permalink
The layer can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 11, 2019
1 parent 6257673 commit 44afef8
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 44afef8

Please sign in to comment.