forked from organicmaps/organicmaps
Merge pull request #3326 from ygorshenin/fix-possible-crash-in-search
[search] Fixed possible crash in search.
This commit is contained in:
commit
6f84875fb9
1 changed files with 3 additions and 2 deletions
|
@ -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>();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue