From d5232d5f5cfe2b001378148294450614d39740aa Mon Sep 17 00:00:00 2001 From: karenzshea Date: Tue, 28 Nov 2017 13:34:45 +0100 Subject: [PATCH] check empty name string in roundabout handler --- src/extractor/guidance/roundabout_handler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extractor/guidance/roundabout_handler.cpp b/src/extractor/guidance/roundabout_handler.cpp index 1aa8f5951..c91ba7553 100644 --- a/src/extractor/guidance/roundabout_handler.cpp +++ b/src/extractor/guidance/roundabout_handler.cpp @@ -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) {