aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-08-19 05:36:50 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-08-19 05:36:50 +0800
commit285850cfb9368eaf25cfc8373882aa721a222bbc (patch)
treee0b5e12c0ffabe3829141fe10c3328feda078067
parentba0ca2274b9aa0a41c3b60a6bfd862aa385c3b45 (diff)
downloadgsoc2013-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.c3
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);