summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-06 20:17:07 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-06 20:17:07 +0000
commit441daff7dfc4cd80075cfbec3345192aab4353b5 (patch)
tree6d96e367d368491dac2fd7c7217dde1cfac7a7dc /plugins
parent53a5f9b6245f03b83e28e579dd937bc1e02e01f9 (diff)
maybe crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@336 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewXstatusNotify/main.cpp3
1 files changed, 3 insertions, 0 deletions
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;