Skip to content

Commit

Permalink
[ArcGIS REST] Guard against possible null-pointer defereference
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 4, 2016
1 parent 2122c4d commit e4afb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/arcgisrest/qgsafsprovider.cpp
Expand Up @@ -245,7 +245,7 @@ bool QgsAfsProvider::getFeature( const QgsFeatureId &id, QgsFeature &f, bool fet
}
f = mCache[id];
Q_ASSERT( f.isValid() );
return filterRect.isNull() || f.geometry()->intersects( filterRect );
return filterRect.isNull() || f.geometry() && f.geometry()->intersects( filterRect );
}

void QgsAfsProvider::setDataSourceUri( const QString &uri )
Expand Down

0 comments on commit e4afb2f

Please sign in to comment.