Bug 1113323 - Make sure loadInfo exists before dereferencing the object (r=sicking)

This commit is contained in:
Christoph Kerschbaumer 2014-12-18 13:14:54 -08:00
parent 27f8918c14
commit 89633e281f

View File

@ -688,7 +688,7 @@ nsIOService::NewChannelFromURIWithProxyFlagsInternal(nsIURI* aURI,
// If we're sandboxed, make sure to clear any owner the channel
// might already have.
if (loadInfo->GetLoadingSandboxed()) {
if (loadInfo && loadInfo->GetLoadingSandboxed()) {
(*result)->SetOwner(nullptr);
}
}