empathy r1347 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1347 - trunk/src
- Date: Mon, 18 Aug 2008 21:36:51 +0000 (UTC)
Author: xclaesse
Date: Mon Aug 18 21:36:50 2008
New Revision: 1347
URL: http://svn.gnome.org/viewvc/empathy?rev=1347&view=rev
Log:
Avoid crashing if mc_account_lookup returns NULL, it can happen when status of an incomplet account changes. MC bug probably.
Modified:
trunk/src/empathy-accounts-dialog.c
Modified: trunk/src/empathy-accounts-dialog.c
==============================================================================
--- trunk/src/empathy-accounts-dialog.c (original)
+++ trunk/src/empathy-accounts-dialog.c Mon Aug 18 21:36:50 2008
@@ -724,6 +724,9 @@
/* 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]