Skip to content

Commit

Permalink
Bug 1194153 - Chrome Registry's convertChromeURL shouldn't crash when…
Browse files Browse the repository at this point in the history
… given a null url, r=bsmedberg.
  • Loading branch information
fqueze committed Sep 4, 2015
1 parent f9293d2 commit ae9218f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chrome/nsChromeRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae9218f

Please sign in to comment.