diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-08-19 05:36:50 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-08-19 05:36:50 +0800 |
commit | 285850cfb9368eaf25cfc8373882aa721a222bbc (patch) | |
tree | e0b5e12c0ffabe3829141fe10c3328feda078067 | |
parent | ba0ca2274b9aa0a41c3b60a6bfd862aa385c3b45 (diff) | |
download | gsoc2013-empathy-285850cfb9368eaf25cfc8373882aa721a222bbc.tar gsoc2013-empathy-285850cfb9368eaf25cfc8373882aa721a222bbc.tar.gz gsoc2013-empathy-285850cfb9368eaf25cfc8373882aa721a222bbc.tar.bz2 gsoc2013-empathy-285850cfb9368eaf25cfc8373882aa721a222bbc.tar.lz gsoc2013-empathy-285850cfb9368eaf25cfc8373882aa721a222bbc.tar.xz gsoc2013-empathy-285850cfb9368eaf25cfc8373882aa721a222bbc.tar.zst gsoc2013-empathy-285850cfb9368eaf25cfc8373882aa721a222bbc.zip |
Avoid crashing if mc_account_lookup returns NULL, it can happen when status of an incomplet account changes. MC bug probably.
svn path=/trunk/; revision=1347
-rw-r--r-- | src/empathy-accounts-dialog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 977aeefbc..a2a8c36dc 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -724,6 +724,9 @@ accounts_dialog_status_changed_cb (MissionControl *mc, /* Update the status in the model */ model = gtk_tree_view_get_model (GTK_TREE_VIEW (dialog->treeview)); account = mc_account_lookup (unique_name); + if (!account) { + return; + } DEBUG ("Status changed for account %s: status=%d presence=%d", unique_name, status, presence); |