diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-03-28 16:02:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 16:02:48 -0700 |
commit | 1edbb0f24b3b405bfc203803fffb1fa1ed68f142 (patch) | |
tree | 8333ceae07f64e4d06ee61f3a7f921bd194844c6 /src | |
parent | c5c69102c5ca1aabb0efda1fe64224256a56bbb1 (diff) | |
download | qtlocation-mapboxgl-1edbb0f24b3b405bfc203803fffb1fa1ed68f142.tar.gz |
[core] check null data in query source features (#8553)
* [core] check null data in query source features
* Include what you use
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/tile/geometry_tile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/tile/geometry_tile.cpp b/src/mbgl/tile/geometry_tile.cpp index 5f1fc5de66..5ccc037ce0 100644 --- a/src/mbgl/tile/geometry_tile.cpp +++ b/src/mbgl/tile/geometry_tile.cpp @@ -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) { |