Fri, 08 Jun 2007 12:38:21 +0000
if we don't have an icon, lets not clear the icon on login (fixes #788)
| libpurple/protocols/jabber/jabber.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/jabber/jabber.c Wed Jun 06 02:56:46 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Fri Jun 08 12:38:21 2007 +0000 @@ -1070,8 +1070,10 @@ /* lets make sure our buddy icon is up to date * before we go letting people know we're here */ img = purple_buddy_icons_find_account_icon(js->gc->account); - jabber_set_buddy_icon(js->gc, img); - purple_imgstore_unref(img); + if(NULL != img) { + jabber_set_buddy_icon(js->gc, img); + purple_imgstore_unref(img); + } /* now we can alert the core that we're ready to send status */ purple_connection_set_state(js->gc, PURPLE_CONNECTED);