Bug #162640 --> kick out if we don't have a server instead of generating a JS exception. This fixes an error some users saw when they try to bring up a compose window and insead got a dialog saying the compose window could not be loaded.

r=neil
sr=mscott
This commit is contained in:
scott%scott-macgregor.org 2003-08-05 22:40:44 +00:00
parent 397117c707
commit 0dac65c8cd
2 changed files with 4 additions and 0 deletions

View File

@ -1958,6 +1958,8 @@ function FillIdentityListPopup(popup)
for (var i in accounts) {
var server = accounts[i].incomingServer;
if (!server)
continue;
var identites = queryISupportsArray(accounts[i].identities, Components.interfaces.nsIMsgIdentity);
for (var j in identites) {
var identity = identites[j];

View File

@ -1917,6 +1917,8 @@ function FillIdentityListPopup(popup)
for (var i in accounts) {
var server = accounts[i].incomingServer;
if (!server)
continue;
var identites = queryISupportsArray(accounts[i].identities, Components.interfaces.nsIMsgIdentity);
for (var j in identites) {
var identity = identites[j];