Bug 1033295 - Crash in nsWindowDataSource::GetWindowForResource. r=bsmedberg

This commit is contained in:
Steven Michaud 2014-07-15 12:03:21 -05:00
parent f49b194318
commit 6357c6bfc3

View File

@ -292,6 +292,10 @@ NS_IMETHODIMP
nsWindowDataSource::GetWindowForResource(const char *aResourceString,
nsIDOMWindow** aResult)
{
if (NS_WARN_IF(!aResourceString)) {
return NS_ERROR_INVALID_ARG;
}
nsCOMPtr<nsIRDFResource> windowResource;
gRDFService->GetResource(nsDependentCString(aResourceString),
getter_AddRefs(windowResource));