changeset 13485:9ad3d85fffeb

[gaim-migrate @ 15861] don't crash when a conversation is open and the account logs out committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 10 Mar 2006 02:24:24 +0000
parents 51c6405049a3
children 840607fdc801
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Fri Mar 10 02:20:56 2006 +0000
+++ b/src/protocols/jabber/jabber.c	Fri Mar 10 02:24:24 2006 +0000
@@ -1032,12 +1032,13 @@
 		const char **nw, const char **ne)
 {
 	JabberStream *js;
-	JabberBuddy *jb;
+	JabberBuddy *jb = NULL;
 
 	if(!b->account->gc)
 		return;
 	js = b->account->gc->proto_data;
-	jb = jabber_buddy_find(js, b->name, FALSE);
+	if(js)
+		jb = jabber_buddy_find(js, b->name, FALSE);
 
 	if(!GAIM_BUDDY_IS_ONLINE(b)) {
 		if(jb && jb->error_msg)