mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1194153 - Chrome Registry's convertChromeURL shouldn't crash when given a null url, r=bsmedberg.
This commit is contained in:
parent
75810b09b4
commit
15be37fc5e
@ -265,7 +265,9 @@ NS_IMETHODIMP
|
||||
nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURI, nsIURI* *aResult)
|
||||
{
|
||||
nsresult rv;
|
||||
NS_ASSERTION(aChromeURI, "null url!");
|
||||
if (NS_WARN_IF(!aChromeURI)) {
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
if (mOverrideTable.Get(aChromeURI, aResult))
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user