aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ea61732c4..77bf37414 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -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))