diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-05 21:58:41 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-05 23:00:56 +0800 |
commit | 6637bf59307f771e97481141f6dfa60f246dcd86 (patch) | |
tree | 7a03520344cca17e7825d799bd065aa2e519ad6d | |
parent | 8a541771a297fd390b5dae66340ea3fa2c1f4933 (diff) | |
download | gsoc2013-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)
-rw-r--r-- | 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 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); |