changeset 30540:66c3a4e7575c

Fix a crash when setting a non account-specific mood and an enabled account is offline
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 28 May 2010 13:36:37 +0000
parents c1de5487a755
children eec2900b0eee
files pidgin/gtkblist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Fri May 28 09:00:18 2010 +0000
+++ b/pidgin/gtkblist.c	Fri May 28 13:36:37 2010 +0000
@@ -3455,7 +3455,7 @@
 				PurpleAccount *account = (PurpleAccount *) accounts->data;
 				PurpleConnection *gc = purple_account_get_connection(account);
 
-				if (gc->flags & PURPLE_CONNECTION_SUPPORT_MOODS) {
+				if (gc && gc->flags & PURPLE_CONNECTION_SUPPORT_MOODS) {
 					update_status_with_mood(account, mood, NULL);
 				}
 			}