cpw.malu.xmpp.idle: be7b4f62: Avoid crashing when showing the tooltip ...

malu at pidgin.im malu at pidgin.im
Sat Feb 7 07:01:04 EST 2009


-----------------------------------------------------------------
Revision: be7b4f6258447b092a218a3872f6bb068190404c
Ancestor: d26a04dc37440f17768123a6b3b036925bce405d
Author: malu at pidgin.im
Date: 2009-02-07T11:57:28
Branch: im.pidgin.cpw.malu.xmpp.idle
URL: http://d.pidgin.im/viewmtn/revision/info/be7b4f6258447b092a218a3872f6bb068190404c

Modified files:
        libpurple/protocols/jabber/jabber.c

ChangeLog: 

Avoid crashing when showing the tooltip of an offline buddy, oops :)

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	ff8791467466c30f0285438759d65767a534ac50
+++ libpurple/protocols/jabber/jabber.c	2719359f6de0d9e8ef84533cc3ca9c78d5a86bbb
@@ -1756,8 +1756,10 @@ void jabber_tooltip_text(PurpleBuddy *b,
 		JabberBuddyResource *top_jbr = jabber_buddy_find_resource(jb, NULL);
 
 		/* resource-specific info for the top resource */
-		jabber_tooltip_add_resource_text(top_jbr, user_info, 
-			multiple_resources);
+		if (top_jbr) {
+			jabber_tooltip_add_resource_text(top_jbr, user_info, 
+				multiple_resources);
+		}
 
 		for(l=jb->resources; l; l = l->next) {
 			jbr = l->data;


More information about the Commits mailing list