aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-dialog.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 8a3d35531..89e1adc17 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -190,11 +190,15 @@ empathy_account_dialog_account_created_cb (EmpathyAccountWidget *widget_object,
EmpathyAccountSettings *settings =
accounts_dialog_model_get_selected_settings (dialog);
- /* Setting the display name to the login ID. */
+ /* Setting the display name to the login ID (if there is one). */
default_display_name = empathy_account_settings_get_string (settings,
"account");
- empathy_account_settings_set_display_name_async (settings,
- default_display_name, NULL, NULL);
+
+ if (default_display_name != NULL)
+ {
+ empathy_account_settings_set_display_name_async (settings,
+ default_display_name, NULL, NULL);
+ }
accounts_dialog_update_settings (dialog, settings);