From c01bf6830cdaed48d084d4ab2691f2f8e9c0b102 Mon Sep 17 00:00:00 2001 From: "peterlubczynski%netscape.com" Date: Mon, 19 Mar 2001 23:01:59 +0000 Subject: [PATCH] Fix for null docShell in nsEventStateManager::UpdateCursor. Fixing AIM Express top crash. bug 69589 r=saari sr=attinasi --- content/events/src/nsEventStateManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/content/events/src/nsEventStateManager.cpp b/content/events/src/nsEventStateManager.cpp index d91537d1135a..837d44127df0 100644 --- a/content/events/src/nsEventStateManager.cpp +++ b/content/events/src/nsEventStateManager.cpp @@ -1518,6 +1518,7 @@ nsEventStateManager::UpdateCursor(nsIPresContext* aPresContext, nsEvent* aEvent, nsCOMPtr pcContainer; aPresContext->GetContainer(getter_AddRefs(pcContainer)); nsCOMPtr docShell(do_QueryInterface(pcContainer)); + if (!docShell) return; PRUint32 busyFlags = nsIDocShell::BUSY_FLAGS_NONE; docShell->GetBusyFlags(&busyFlags);