Bug #12198 --> don't dereference a null ptr for the uri. return gracefully.

r=sspitzer
This commit is contained in:
mscott%netscape.com 1999-10-07 23:29:13 +00:00
parent 6f6cc8ed7e
commit c0a1bfafc4
2 changed files with 8 additions and 2 deletions

View File

@ -2241,7 +2241,10 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
}
//Take care of mailto: url
if (!uri) // we were unable to create a uri
return rv;
//Take care of mailto: url
PRBool isMail= PR_FALSE;
rv = uri->GetSpec(getter_Copies(spec));
if (NS_FAILED(rv))

View File

@ -2241,7 +2241,10 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
}
//Take care of mailto: url
if (!uri) // we were unable to create a uri
return rv;
//Take care of mailto: url
PRBool isMail= PR_FALSE;
rv = uri->GetSpec(getter_Copies(spec));
if (NS_FAILED(rv))