# HG changeset patch # User Nathan Walp # Date 1181306301 0 # Node ID 4b4eb353cf9f6febbdec288c861920235a0cc03e # Parent fb096fc27b4e98809aef783490d91121f00608fa if we don't have an icon, lets not clear the icon on login (fixes #788) diff -r fb096fc27b4e -r 4b4eb353cf9f libpurple/protocols/jabber/jabber.c --- 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);