check empty name string in roundabout handler

This commit is contained in:
karenzshea 2017-11-28 13:34:45 +01:00 committed by Patrick Niklaus
parent 3f7b5da683
commit d5232d5f5c

View File

@ -295,7 +295,8 @@ RoundaboutType RoundaboutHandler::getRoundaboutType(const NodeID nid) const
return SPECIAL_EDGEID;
}
if (EMPTY_NAMEID != edge_data.name_id)
const auto &edge_name = name_table.GetNameForID(edge_data.name_id).to_string();
if (!edge_name.empty())
{
const auto announce = [&](unsigned id) {