mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
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:
parent
05bb290330
commit
4a92ee7b35
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user