From 441daff7dfc4cd80075cfbec3345192aab4353b5 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 6 Jun 2012 20:17:07 +0000 Subject: maybe crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@336 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewXstatusNotify/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/NewXstatusNotify/main.cpp b/plugins/NewXstatusNotify/main.cpp index 7e829fa2d5..f1e34b53c7 100644 --- a/plugins/NewXstatusNotify/main.cpp +++ b/plugins/NewXstatusNotify/main.cpp @@ -171,6 +171,9 @@ int ProcessExtraStatus(DBCONTACTWRITESETTING *cws, HANDLE hContact) if (cws->value.type == DBVT_DELETED) return 0; + if (hContact == NULL) + return 0; + if (strstr(cws->szSetting, "/mood/") || strstr(cws->szSetting, "/activity/")) // Jabber mood or activity changed { char *szSetting; -- cgit v1.2.3