diff options
-rw-r--r-- | src/mir_app/src/BaseExtraIcon.cpp | 2 |
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);
}
|