Bug 819588. Null-check the window before jumping. r=emk

This commit is contained in:
Boris Zbarsky 2012-12-11 17:43:22 -05:00
parent 44ee89fc83
commit 05e5ef448b

View File

@ -420,7 +420,7 @@ nsDOMParser::InitInternal(nsISupports* aOwner, nsIPrincipal* prin,
nsCOMPtr<nsIDocument> doc;
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(aOwner);
if (aOwner) {
if (window) {
nsCOMPtr<nsIDOMDocument> domdoc = window->GetExtantDocument();
doc = do_QueryInterface(domdoc);
}