From 768c9c82b193b1031ea8ee9f2cb41404d48310e7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 12 Jul 2019 17:30:34 +0300 Subject: =?UTF-8?q?fixes=20#2004=20(ICQ/Clist=5Fmodern/core:=20=D1=80?= =?UTF-8?q?=D0=BE=D0=BD=D1=8F=D0=B5=D1=82=20=D0=BC=D0=B8=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B4=D1=83=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=BE=D0=B4=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=BA=D0=BE=D0=BB=D0=B0=20ICQ)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/clcidents.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/mir_app') 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; } -- cgit v1.2.3