mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Null-check document pointer. (Bug 516307) r=bzbarsky
This commit is contained in:
parent
f81e3bdbb4
commit
09d2b28c2f
@ -290,7 +290,8 @@ nsImageLoadingContent::OnStopDecode(imgIRequest* aRequest,
|
||||
// decoding, so we can't wait for them to finish. See bug 512435.
|
||||
|
||||
// We can only do this if we have a presshell
|
||||
nsIPresShell* shell = GetOurDocument()->GetPrimaryShell();
|
||||
nsIDocument* doc = GetOurDocument();
|
||||
nsIPresShell* shell = doc ? doc->GetPrimaryShell() : nsnull;
|
||||
if (shell) {
|
||||
|
||||
// We need to figure out whether to kick off decoding
|
||||
|
Loading…
Reference in New Issue
Block a user