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
This commit is contained in:
sspitzer%netscape.com 2001-08-07 06:04:01 +00:00
Родитель 22b0513aa0
Коммит a26ec78d01
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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;
}
}