From e55c1e8c3d5ccb2228509d0feee52fb7486e9d27 Mon Sep 17 00:00:00 2001 From: "serge%netscape.com" Date: Thu, 30 May 2002 00:46:12 +0000 Subject: [PATCH] fix for 147256, Crash in nsDocShell::GetRootScrollableView, r=av, sr=alecf git-svn-id: svn://10.0.0.236/trunk@122301 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 8b4b9352641..dea71ce031e 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -6148,6 +6148,7 @@ nsDocShell::GetRootScrollableView(nsIScrollableView ** aOutScrollView) nsCOMPtr shell; NS_ENSURE_SUCCESS(GetPresShell(getter_AddRefs(shell)), NS_ERROR_FAILURE); + NS_ENSURE_TRUE(shell, NS_ERROR_NULL_POINTER); nsCOMPtr viewManager; NS_ENSURE_SUCCESS(shell->GetViewManager(getter_AddRefs(viewManager)),