[core] Band-aid to prevent GeometryTile::redoLayout race condition from causing a crash (#6322)

This commit is contained in:
John Firebaugh
2016-09-13 15:40:55 -07:00
committed by GitHub
parent 1a2680b5b7
commit 8f3736fbfd

View File

@@ -136,6 +136,12 @@ void TileWorker::parseLayer(const Layer* layer) {
if (obsolete)
return;
// Temporary prevention for crashing due to https://github.com/mapbox/mapbox-gl-native/issues/6263.
// Instead, the race condition will produce a blank tile.
if (!tileData) {
return;
}
auto geometryLayer = tileData->getLayer(layer->baseImpl->sourceLayer);
if (!geometryLayer) {
// The layer specified in the bucket does not exist. Do nothing.