[core] check null data in query source features (#8553)
* [core] check null data in query source features * Include what you use
This commit is contained in:
@@ -165,6 +165,11 @@ void GeometryTile::queryRenderedFeatures(
|
||||
void GeometryTile::querySourceFeatures(
|
||||
std::vector<Feature>& result,
|
||||
const style::SourceQueryOptions& options) {
|
||||
|
||||
// Data not yet available
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
|
||||
// No source layers, specified, nothing to do
|
||||
if (!options.sourceLayers) {
|
||||
|
||||
Reference in New Issue
Block a user