]> git.0d.be Git - empathy.git/commitdiff
Avoid crashing if mc_account_lookup returns NULL, it can happen when status of an...
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 18 Aug 2008 21:36:50 +0000 (21:36 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 18 Aug 2008 21:36:50 +0000 (21:36 +0000)
svn path=/trunk/; revision=1347

src/empathy-accounts-dialog.c

index 977aeefbca06834a82248b0dddfe2fe37d7600cd..a2a8c36dc615defc42e5e8c7db8a7169bd3d2086 100644 (file)
@@ -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);