summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/clcidents.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mir_app/src/clcidents.cpp b/src/mir_app/src/clcidents.cpp
index 35a2552c0d..931975a599 100644
--- a/src/mir_app/src/clcidents.cpp
+++ b/src/mir_app/src/clcidents.cpp
@@ -221,9 +221,11 @@ MIR_APP_DLL(HANDLE) Clist_ContactToItemHandle(ClcContact *cc, DWORD *nmFlags)
MIR_APP_DLL(int) Clist_GetRealStatus(ClcContact *cc, int iDefaultValue)
{
- PROTOACCOUNT *pa = Proto_GetAccount(cc->pce->szProto);
- if (pa)
- return pa->iRealStatus;
+ if (cc->pce) {
+ PROTOACCOUNT *pa = Proto_GetAccount(cc->pce->szProto);
+ if (pa)
+ return pa->iRealStatus;
+ }
return iDefaultValue;
}