Fixing crasher bug 105670. Adding null check on incoming server in the process of getting default account. r=racham, sr=sspitzer

This commit is contained in:
racham%netscape.com 2001-10-26 02:19:43 +00:00
parent 05bb290330
commit 4a92ee7b35

View File

@ -780,7 +780,8 @@ nsMsgAccountManager::GetDefaultAccount(nsIMsgAccount * *aDefaultAccount)
NS_ENSURE_SUCCESS(rv,rv);
PRBool canBeDefaultServer = PR_FALSE;
server->GetCanBeDefaultServer(&canBeDefaultServer);
if (server)
server->GetCanBeDefaultServer(&canBeDefaultServer);
// if this can serve as default server, set it as default and
// break outof the loop.