aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-chooser.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-05 21:58:41 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-05 23:00:56 +0800
commit6637bf59307f771e97481141f6dfa60f246dcd86 (patch)
tree7a03520344cca17e7825d799bd065aa2e519ad6d /libempathy-gtk/empathy-account-chooser.c
parent8a541771a297fd390b5dae66340ea3fa2c1f4933 (diff)
downloadgsoc2013-empathy-6637bf59307f771e97481141f6dfa60f246dcd86.tar
gsoc2013-empathy-6637bf59307f771e97481141f6dfa60f246dcd86.tar.gz
gsoc2013-empathy-6637bf59307f771e97481141f6dfa60f246dcd86.tar.bz2
gsoc2013-empathy-6637bf59307f771e97481141f6dfa60f246dcd86.tar.lz
gsoc2013-empathy-6637bf59307f771e97481141f6dfa60f246dcd86.tar.xz
gsoc2013-empathy-6637bf59307f771e97481141f6dfa60f246dcd86.tar.zst
gsoc2013-empathy-6637bf59307f771e97481141f6dfa60f246dcd86.zip
account-chooser: check if account is NULL before trying to use it (#614874)
Diffstat (limited to 'libempathy-gtk/empathy-account-chooser.c')
-rw-r--r--libempathy-gtk/empathy-account-chooser.c4
1 files changed, 4 insertions, 0 deletions
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);