diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-03-28 14:38:11 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-03-28 21:31:35 +0300 |
commit | b3ffeceb9e0077fc81330a411a2ae1b590ec8dd6 (patch) | |
tree | f8098d50881373942297298272fff5296fac8144 /test | |
parent | 47c1e42ac1073ef02093b59336588f389f287227 (diff) | |
download | qtlocation-mapboxgl-b3ffeceb9e0077fc81330a411a2ae1b590ec8dd6.tar.gz |
[core] check null data in query source features
Diffstat (limited to 'test')
-rw-r--r-- | test/tile/vector_tile.test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/tile/vector_tile.test.cpp b/test/tile/vector_tile.test.cpp index 859fd417b0..aa39824787 100644 --- a/test/tile/vector_tile.test.cpp +++ b/test/tile/vector_tile.test.cpp @@ -86,3 +86,12 @@ TEST(VectorTile, Issue7615) { EXPECT_EQ(symbolBucket.get(), tile.getBucket(symbolLayer)); } + +TEST(VectorTile, Issue8542) { + VectorTileTest test; + VectorTile tile(OverscaledTileID(0, 0, 0), "source", test.updateParameters, test.tileset); + + // Query before data is set + std::vector<Feature> result; + tile.querySourceFeatures(result, { { {"layer"} }, {} }); +}
\ No newline at end of file |