[empathy] account-chooser: check if account is NULL before trying to use it (#614874)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] account-chooser: check if account is NULL before trying to use it (#614874)
- Date: Mon, 5 Apr 2010 15:03:11 +0000 (UTC)
commit 6637bf59307f771e97481141f6dfa60f246dcd86
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]