Bug 1038887 - Add back null check to nsErrorService::GetErrorStringBundle. r=froydnj

This commit is contained in:
Andrew McCreight
2014-07-25 16:41:24 -07:00
parent ca30797996
commit 876a84753e
3 changed files with 5 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ NS_IMETHODIMP
nsErrorService::GetErrorStringBundle(int16_t aErrorModule, char** aResult)
{
nsCString* bundleURL = mErrorStringBundleURLMap.Get(aErrorModule);
if (!bundleURL) {
return NS_ERROR_FAILURE;
}
*aResult = ToNewCString(*bundleURL);
return NS_OK;
}