Merge pull request #3326 from ygorshenin/fix-possible-crash-in-search

[search] Fixed possible crash in search.
This commit is contained in:
mpimenov 2016-05-25 15:13:48 +04:00
commit 6f84875fb9

View file

@ -1421,8 +1421,9 @@ void Geocoder::FillMissingFieldsInResults()
{
mwmId = id.m_mwmId;
mwmHandle = m_index.GetMwmHandleById(mwmId);
rankTable = RankTable::Load(mwmHandle.GetValue<MwmValue>()->m_cont);
if (!rankTable)
if (mwmHandle.IsAlive())
rankTable = RankTable::Load(mwmHandle.GetValue<MwmValue>()->m_cont);
else
rankTable = make_unique<DummyRankTable>();
}