[android] Fixed crash on MWM start with API invoke.

This commit is contained in:
vng 2014-03-17 18:53:38 +03:00 committed by Alex Zolotarev
parent 082ac10d57
commit 4cd7d871b4

View file

@ -366,5 +366,7 @@ void PinClickManager::OnAdditonalLayer(size_t index)
void PinClickManager::OnDismiss()
{
m_dismissListener();
// Can be called before the listeners will be attached (clearing on activity start).
if (m_dismissListener)
m_dismissListener();
}