mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[ArcGIS REST] Guard against possible null-pointer defereference
This commit is contained in:
parent
2122c4db89
commit
e4afb2fb9e
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user