changeset 17777:4b4eb353cf9f

if we don't have an icon, lets not clear the icon on login (fixes #788)
author Nathan Walp <nwalp@pidgin.im>
date Fri, 08 Jun 2007 12:38:21 +0000
parents fb096fc27b4e
children 13f7a06c240d
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	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);