Skip to content
Permalink
Browse files

Fix possible null-pointer dereference

  • Loading branch information
manisandro committed Mar 13, 2017
1 parent bdd3ce3 commit 97a3709798b350e5b03a56df6e5256d7d07b3b33
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/arcgisrest/qgsafsprovider.cpp
@@ -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

0 comments on commit 97a3709

Please sign in to comment.
You can’t perform that action at this time.