Fix for null docShell in nsEventStateManager::UpdateCursor. Fixing AIM Express top crash. bug 69589 r=saari sr=attinasi

This commit is contained in:
peterlubczynski%netscape.com 2001-03-19 23:01:59 +00:00
Родитель 913938c7f0
Коммит c01bf6830c
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1518,6 +1518,7 @@ nsEventStateManager::UpdateCursor(nsIPresContext* aPresContext, nsEvent* aEvent,
nsCOMPtr<nsISupports> pcContainer;
aPresContext->GetContainer(getter_AddRefs(pcContainer));
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(pcContainer));
if (!docShell) return;
PRUint32 busyFlags = nsIDocShell::BUSY_FLAGS_NONE;
docShell->GetBusyFlags(&busyFlags);