Mercurial > pidgin
changeset 25698:1ad482221d70
Avoid crashing when showing the tooltip of an offline buddy, oops :)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Sat, 07 Feb 2009 11:57:28 +0000 |
parents | 8202f850ca9e |
children | a2388ce30772 |
files | libpurple/protocols/jabber/jabber.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Sat Feb 07 11:09:31 2009 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sat Feb 07 11:57:28 2009 +0000 @@ -1756,8 +1756,10 @@ 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;