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 b68ceac commit 6a08e0b
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 @@ -246,7 +246,7 @@ namespace QgsWfs
for ( int i = 0; i < wfsLayerIds.size(); ++i )
{
QgsMapLayer *layer = project->mapLayer( wfsLayerIds.at( i ) );
if ( layer->type() != QgsMapLayerType::VectorLayer )
if ( !layer || layer->type() != QgsMapLayerType::VectorLayer )
{
continue;
}
Expand Down

0 comments on commit 6a08e0b

Please sign in to comment.