fix for 147256, Crash in nsDocShell::GetRootScrollableView, r=av, sr=alecf

This commit is contained in:
serge@netscape.com
2002-05-30 00:46:12 +00:00
parent b43eac2a1b
commit 6df00c80d7

View File

@@ -6148,6 +6148,7 @@ nsDocShell::GetRootScrollableView(nsIScrollableView ** aOutScrollView)
nsCOMPtr<nsIPresShell> shell;
NS_ENSURE_SUCCESS(GetPresShell(getter_AddRefs(shell)), NS_ERROR_FAILURE);
NS_ENSURE_TRUE(shell, NS_ERROR_NULL_POINTER);
nsCOMPtr<nsIViewManager> viewManager;
NS_ENSURE_SUCCESS(shell->GetViewManager(getter_AddRefs(viewManager)),