[empathy/gnome-2-30] account-chooser: check if account is NULL before trying to use it (#614874)



commit 5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Apr 5 15:58:41 2010 +0200

    account-chooser: check if account is NULL before trying to use it (#614874)

 libempathy-gtk/empathy-account-chooser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index 4e3b63b..8a93776 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -742,6 +742,10 @@ account_chooser_update_iter (EmpathyAccountChooser *chooser,
 			    COL_ACCOUNT_POINTER, &account,
 			    -1);
 
+	/* Skip rows without account associated */
+	if (account == NULL)
+		return;
+
 	icon_name = tp_account_get_icon_name (account);
 	if (priv->filter) {
 		is_enabled = priv->filter (account, priv->filter_data);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]