From 2d7fd2e0d830eeaaf468b37fb666f3e2f0a264f3 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Tue, 7 Aug 2001 06:04:01 +0000 Subject: [PATCH] fix for #94067. catch the js exception we get when there is no default account. this happens the first time you use the account wizard on a new profile. r/sr=bienvenu --- mailnews/base/prefs/resources/content/AccountWizard.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; + } }