Skip to content
Permalink
Browse files

[ArcGIS REST] Guard against possible null-pointer defereference

  • Loading branch information
manisandro committed Jul 4, 2016
1 parent 2122c4d commit e4afb2fb9eeb54241fddcce7c0b84f9211635f55
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/arcgisrest/qgsafsprovider.cpp
@@ -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 )

0 comments on commit e4afb2f

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