forked from organicmaps/organicmaps
[search] Fix crash with empty tokens and empty prefix. Closed #665.
This commit is contained in:
parent
e5c471b033
commit
b60021ce40
1 changed files with 5 additions and 2 deletions
|
@ -173,8 +173,11 @@ public:
|
|||
|
||||
template <class ToDo> void ForEachResult(ToDo & toDo) const
|
||||
{
|
||||
for (typename SetType::const_iterator i = m_prevSet->begin(); i != m_prevSet->end(); ++i)
|
||||
toDo(*i);
|
||||
if (m_prevSet)
|
||||
{
|
||||
for (typename SetType::const_iterator i = m_prevSet->begin(); i != m_prevSet->end(); ++i)
|
||||
toDo(*i);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue