From 887b348b47f5ca65d18173b3c6dad1c415c3059b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 9 Jan 2018 16:13:33 +0300 Subject: crash fix --- src/mir_app/src/BaseExtraIcon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mir_app/src/BaseExtraIcon.cpp b/src/mir_app/src/BaseExtraIcon.cpp index c485046637..61b2c0859a 100644 --- a/src/mir_app/src/BaseExtraIcon.cpp +++ b/src/mir_app/src/BaseExtraIcon.cpp @@ -77,7 +77,7 @@ void BaseExtraIcon::onClick(MCONTACT hContact) int BaseExtraIcon::ClistSetExtraIcon(MCONTACT hContact, HANDLE hImage) { ExtraIcon *tmp = extraIconsByHandle[m_id - 1]; - if (tmp != this) + if (tmp != nullptr && tmp != this) return tmp->ClistSetExtraIcon(hContact, hImage); return Clist_SetExtraIcon(hContact, m_slot, hImage); } -- cgit v1.2.3