diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-06 20:17:07 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-06 20:17:07 +0000 |
commit | 441daff7dfc4cd80075cfbec3345192aab4353b5 (patch) | |
tree | 6d96e367d368491dac2fd7c7217dde1cfac7a7dc /plugins/NewXstatusNotify/main.cpp | |
parent | 53a5f9b6245f03b83e28e579dd937bc1e02e01f9 (diff) |
maybe crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@336 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/main.cpp')
-rw-r--r-- | plugins/NewXstatusNotify/main.cpp | 3 |
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;
|