check empty name string in roundabout handler

This commit is contained in:
karenzshea 2017-11-28 13:34:45 +01:00
parent 11d491e00f
commit b777fb1052

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) {