From 90f62ff1b5f9077482744ec8e218089d07fb8dc2 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 5 Oct 2009 15:07:15 +0100 Subject: accounts_dialog_account_display_name_changed_cb: check that accounts_dialog_model_get_selected_settings didn't return NULL (#597416) All the other callers of this function cope with setting being NULL so this one should do as well. --- src/empathy-accounts-dialog.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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)) -- cgit v1.2.3