Skip to content

Commit

Permalink
Fix possible null-pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Mar 13, 2017
1 parent bdd3ce3 commit 97a3709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/arcgisrest/qgsafsprovider.cpp
Expand Up @@ -162,7 +162,7 @@ bool QgsAfsProvider::getFeature( const QgsFeatureId &id, QgsFeature &f, bool fet
if ( it != mCache.end() )
{
f = it.value();
return filterRect.isNull() || f.geometry()->intersects( filterRect );
return filterRect.isNull() || ( f.geometry() && f.geometry()->intersects( filterRect ) );
}

// Determine attributes to fetch
Expand Down

0 comments on commit 97a3709

Please sign in to comment.