summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/clisttray.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mir_app/src/clisttray.cpp b/src/mir_app/src/clisttray.cpp
index 0f18e7329c..5e5b87015e 100644
--- a/src/mir_app/src/clisttray.cpp
+++ b/src/mir_app/src/clisttray.cpp
@@ -555,9 +555,10 @@ MIR_APP_DLL(void) Clist_TrayIconIconsChanged()
{
initcheck;
mir_cslock lck(trayLockCS);
-
- Clist_TrayIconDestroy(g_clistApi.hwndContactList);
- g_clistApi.pfnTrayIconInit(g_clistApi.hwndContactList);
+ if (g_clistApi.hwndContactList != nullptr) {
+ Clist_TrayIconDestroy(g_clistApi.hwndContactList);
+ g_clistApi.pfnTrayIconInit(g_clistApi.hwndContactList);
+ }
}
static UINT_PTR autoHideTimerId;