From 5050e098f764fdb38ed532d098375ca16e10444e Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Thu, 17 Mar 2016 11:19:11 +0300 Subject: [PATCH] Routing don't asks to download empty country names. --- routing/online_absent_fetcher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routing/online_absent_fetcher.cpp b/routing/online_absent_fetcher.cpp index 9186a239c6..1bc624b7f1 100644 --- a/routing/online_absent_fetcher.cpp +++ b/routing/online_absent_fetcher.cpp @@ -37,8 +37,9 @@ void OnlineAbsentCountriesFetcher::GetAbsentCountries(vector & countries m_fetcherThread->Join(); for (auto const & point : m_fetcherThread->GetRoutineAs()->GetMwmPoints()) { - string name = m_countryFileFn(point); - if (m_countryLocalFileFn(name)) + string const name = m_countryFileFn(point); + ASSERT(!name.empty(), ()); + if (name.empty() || m_countryLocalFileFn(name)) continue; LOG(LINFO, ("Needs: ", name));