summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-09 16:13:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-09 16:13:33 +0300
commit887b348b47f5ca65d18173b3c6dad1c415c3059b (patch)
tree8706875872281a53f1a780e2e4f36cceef745b00 /src
parent9d31ed4619e1614f98c39b9d224ff22b629ac123 (diff)
crash fix
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/BaseExtraIcon.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}