aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 02a72ea672..acb044449c 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -627,7 +627,9 @@ mail_config_get_default_account (void)
the default */
e_iterator_reset (iter);
account = (EAccount *) e_iterator_get (iter);
- gconf_client_set_string (config->gconf, "/apps/evolution/mail/default_account", account->uid, NULL);
+ if (account)
+ gconf_client_set_string (config->gconf, "/apps/evolution/mail/default_account",
+ account->uid, NULL);
g_object_unref (iter);
return account;