Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Magidovich <mgsergio@mapswithme.com>2017-10-02 14:50:51 +0300
committerYuri Gorshenin <mipt.vi002@gmail.com>2017-10-02 15:15:20 +0300
commitdfb2f263c27f984f2467c94dc2ecf848ed49f30d (patch)
treef8c79fca5530efff214ad811144e46643d9b581c /openlr/decoded_path.cpp
parent498435dbc685f80209b1e2d801b0921ad8c4276b (diff)
Code review.
Diffstat (limited to 'openlr/decoded_path.cpp')
-rw-r--r--openlr/decoded_path.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/openlr/decoded_path.cpp b/openlr/decoded_path.cpp
index 72a2f7f700..807008faf1 100644
--- a/openlr/decoded_path.cpp
+++ b/openlr/decoded_path.cpp
@@ -47,6 +47,7 @@ void FeatureIdFromXML(pugi::xml_node const & node, Index const & index, FeatureI
THROW_IF_NODE_IS_EMPTY(node, openlr::DecodedPathLoadError, ("Can't parse CountryName"));
auto const countryName = node.child("CountryName").text().as_string();
fid.m_mwmId = index.GetMwmIdByCountryFile(platform::CountryFile(countryName));
+ CHECK(fid.m_mwmId.IsAlive(), ("Can't get mwm id for country", countryName));
fid.m_index = node.child("Index").text().as_uint();
}