diff --git a/mailnews/base/prefs/resources/content/AccountWizard.js b/mailnews/base/prefs/resources/content/AccountWizard.js index cf53ad9f8e6..315219ad3f7 100644 --- a/mailnews/base/prefs/resources/content/AccountWizard.js +++ b/mailnews/base/prefs/resources/content/AccountWizard.js @@ -140,7 +140,14 @@ function onLoad() { else wizardManager.LoadPage("accounttype", false); - gDefaultAccount = accountm.defaultAccount; + try { + gDefaultAccount = accountm.defaultAccount; + } + catch (ex) { + // no default account, this is expected the first time you launch mail + // on a new profile + gDefaultAccount = null; + } }