mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
fix crash when grouped by account and an account has been deleted, sr=mscott, a=asa 297948
This commit is contained in:
parent
d2edde688d
commit
e13166e88f
@ -537,6 +537,13 @@ nsresult nsMsgDBView::FetchAccount(nsIMsgDBHdr * aHdr, PRUnichar ** aAccount)
|
||||
if (server)
|
||||
server->GetPrettyName(aAccount);
|
||||
}
|
||||
else
|
||||
{
|
||||
*aAccount = ToNewUnicode(accountKey);
|
||||
}
|
||||
|
||||
if (!*aAccount)
|
||||
*aAccount = nsCRT::strdup(NS_LITERAL_STRING("").get());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user