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
This commit is contained in:
serge%netscape.com
2002-05-30 00:46:12 +00:00
parent 661fee64f8
commit e55c1e8c3d

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)),