From 5212643f256d5cf75b295aeb42783c81ce033519 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 Apr 2016 11:11:39 +0000 Subject: preventing troubles with nick = NULL git-svn-id: http://svn.miranda-ng.org/main/trunk@16743 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/JabberG/src/jabber_util.cpp') diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index ccf4a8223b..0fe957a179 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -492,7 +492,7 @@ void CJabberProto::SendPresence(int status, bool bSendToAll) LISTFOREACH(i, this, LIST_CHATROOM) { JABBER_LIST_ITEM *item = ListGetItemPtrFromIndex(i); - if (item != NULL) { + if (item != NULL && item->nick != NULL) { TCHAR text[1024]; mir_sntprintf(text, _T("%s/%s"), item->jid, item->nick); SendPresenceTo(status == ID_STATUS_INVISIBLE ? ID_STATUS_ONLINE : status, text, NULL); -- cgit v1.2.3