Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
fix crasher
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Nov 26, 2015
1 parent 139b9e7 commit b1ad1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/map/tile_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void TileWorker::parseLayer(const StyleLayer& layer, const GeometryTile& geometr
}
std::string name = "(unknown)";
const auto maybe_name = feature->getValue("name_en");
if (maybe_name.get().is<std::string>()) {
if (maybe_name && maybe_name.get().is<std::string>()) {
name = maybe_name.get().get<std::string>();
}
name = layer.id + " - " + name;
Expand Down

0 comments on commit b1ad1b6

Please sign in to comment.