From 7e021d3aa8b6db1736a673be5613ebbc8b915bc0 Mon Sep 17 00:00:00 2001 From: "Olli.Pettay%helsinki.fi" Date: Mon, 11 Sep 2006 20:10:40 +0000 Subject: [PATCH] Bug 351853, Crashes [@ nsFormFillController::GetDocShellForInput], adding a null check, r=dbaron --- toolkit/components/satchel/src/nsFormFillController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/satchel/src/nsFormFillController.cpp b/toolkit/components/satchel/src/nsFormFillController.cpp index a459e6cf5a55..948af119e76d 100644 --- a/toolkit/components/satchel/src/nsFormFillController.cpp +++ b/toolkit/components/satchel/src/nsFormFillController.cpp @@ -1083,7 +1083,7 @@ nsFormFillController::GetDocShellForInput(nsIDOMHTMLInputElement *aInput) nsCOMPtr domDoc; aInput->GetOwnerDocument(getter_AddRefs(domDoc)); nsCOMPtr doc = do_QueryInterface(domDoc); - + NS_ENSURE_TRUE(doc, nsnull); nsCOMPtr webNav = do_GetInterface(doc->GetWindow()); nsCOMPtr docShell = do_QueryInterface(webNav); return docShell;