diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2017-10-02 14:50:51 +0300 |
---|---|---|
committer | Yuri Gorshenin <mipt.vi002@gmail.com> | 2017-10-02 15:15:20 +0300 |
commit | dfb2f263c27f984f2467c94dc2ecf848ed49f30d (patch) | |
tree | f8c79fca5530efff214ad811144e46643d9b581c /openlr/decoded_path.cpp | |
parent | 498435dbc685f80209b1e2d801b0921ad8c4276b (diff) |
Code review.
Diffstat (limited to 'openlr/decoded_path.cpp')
-rw-r--r-- | openlr/decoded_path.cpp | 1 |
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(); } |