summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_iqid.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-02-28 11:47:11 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-02-28 11:47:11 +0000
commita1009bf5a26ec6e13badf360278765ea8c0f0edd (patch)
tree3deac61399b3d6cf9a5237622833fe9098550191 /protocols/JabberG/src/jabber_iqid.cpp
parente44d626b32c534cace3a54d54778dfa9cf3599c9 (diff)
Jabber:
-minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12286 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_iqid.cpp')
-rw-r--r--protocols/JabberG/src/jabber_iqid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp
index 0618a30505..7269561533 100644
--- a/protocols/JabberG/src/jabber_iqid.cpp
+++ b/protocols/JabberG/src/jabber_iqid.cpp
@@ -619,7 +619,8 @@ void CJabberProto::OnIqResultGetVcardPhoto(HXML n, MCONTACT hContact, bool &hasP
JABBER_LIST_ITEM *item = ListGetItemPtr(LIST_ROSTER, jid);
if (item == NULL) {
item = ListAdd(LIST_VCARD_TEMP, jid); // adding to the temp list to store information about photo
- item->bUseResource = TRUE;
+ if (item != NULL)
+ item->bUseResource = TRUE;
}
if (item != NULL) {
hasPhoto = TRUE;