fix crash when grouped by account and an account has been deleted, sr=mscott, a=asa 297948

This commit is contained in:
bienvenu%nventure.com 2005-06-17 14:46:02 +00:00
parent d2edde688d
commit e13166e88f

View File

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