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:03:48 +0800 |
commit | 5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25 (patch) | |
tree | 3718669ca831e631e51e6cc4b1a77f306b629310 | |
parent | eb3f7666328c6a0da2e7d17e9662ac1f4bfb4ce3 (diff) | |
download | gsoc2013-empathy-5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25.tar gsoc2013-empathy-5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25.tar.gz gsoc2013-empathy-5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25.tar.bz2 gsoc2013-empathy-5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25.tar.lz gsoc2013-empathy-5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25.tar.xz gsoc2013-empathy-5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25.tar.zst gsoc2013-empathy-5f3c96ab2bdf0fb5fa9e134393c2fae4db5e8f25.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); |