mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug #12198 --> don't dereference a null ptr for the uri. return gracefully.
r=sspitzer
This commit is contained in:
parent
6f6cc8ed7e
commit
c0a1bfafc4
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user