[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:
John Firebaugh
2017-03-28 16:02:48 -07:00
committed by GitHub
parent c5c69102c5
commit 1edbb0f24b
2 changed files with 15 additions and 0 deletions

View File

@@ -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) {