From 5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 5 Apr 2010 15:58:41 +0200 Subject: account-chooser: check if account is NULL before trying to use it (#614874) --- libempathy-gtk/empathy-account-chooser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c index 4e3b63b4c..8a937769c 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); -- cgit v1.2.3