]> git.0d.be Git - empathy.git/commitdiff
accounts_dialog_account_display_name_changed_cb: check that accounts_dialog_model_get...
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 5 Oct 2009 14:07:15 +0000 (15:07 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 5 Oct 2009 16:58:38 +0000 (17:58 +0100)
All the other callers of this function cope with setting being NULL so
this one should do as well.

src/empathy-accounts-dialog.c

index ea61732c4e3b4c4c86fc61dbdcbc124de4e907dc..77bf3741430e8cd96ca0367b3c4f357d8543cb18 100644 (file)
@@ -1224,6 +1224,9 @@ accounts_dialog_account_display_name_changed_cb (EmpathyAccount *account,
   display_name = empathy_account_get_display_name (account);
   model = gtk_tree_view_get_model (GTK_TREE_VIEW (priv->treeview));
   settings = accounts_dialog_model_get_selected_settings (dialog);
+  if (settings == NULL)
+    return;
+
   selected_account = empathy_account_settings_get_account (settings);
 
   if (accounts_dialog_get_account_iter (dialog, account, &iter))