part of the fix for #46888. after cancelling a news message, you can't

select another message.  fix by naving@netscape.com.  r=sspitzer,a=mscott
also a couple bullet proofing fixes to prevent crashes.


git-svn-id: svn://10.0.0.236/trunk@79556 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com
2000-09-19 22:40:52 +00:00
parent eac61c4ec3
commit fece31ac28
4 changed files with 56 additions and 23 deletions

View File

@@ -1005,7 +1005,10 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
if(mDocLoader == loader && NS_FAILED(aStatus))
{
nsXPIDLCString host;
nsresult hostResult = aURL->GetHost(getter_Copies(host));
nsresult hostResult = NS_ERROR_FAILURE;
if (aURL) {
hostResult = aURL->GetHost(getter_Copies(host));
}
if (NS_SUCCEEDED(hostResult) && host)
{
CBufDescriptor buf((const char *)host, PR_TRUE, PL_strlen(host) + 1);