[core] check null data in query source features
This commit is contained in:
committed by
Ivo van Dongen
parent
47c1e42ac1
commit
b3ffeceb9e
@@ -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