From aa30bce2f254998db7260edd45f156e7bb89b069 Mon Sep 17 00:00:00 2001 From: "Olli.Pettay%helsinki.fi" Date: Fri, 2 Mar 2007 07:30:45 +0000 Subject: [PATCH] Bug 339470, [@ nsIMEStateManager::IsActive], p=masayuki@d-toybox.com, r+sr=roc --- content/events/src/nsIMEStateManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/content/events/src/nsIMEStateManager.cpp b/content/events/src/nsIMEStateManager.cpp index 5ee366a8448d..2cd5e49e9727 100755 --- a/content/events/src/nsIMEStateManager.cpp +++ b/content/events/src/nsIMEStateManager.cpp @@ -188,6 +188,7 @@ nsIMEStateManager::IsActive(nsPresContext* aPresContext) // This root window is not active. return PR_FALSE; } + NS_ENSURE_TRUE(aPresContext->GetPresShell(), PR_FALSE); nsIViewManager* vm = aPresContext->GetViewManager(); NS_ENSURE_TRUE(vm, PR_FALSE); nsCOMPtr observer;