Fix for crash in pluginInstanceOwner::ProcessEvent when mWindow is null bug 96648, r=av sr=attinasi

git-svn-id: svn://10.0.0.236/trunk@105375 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com
2001-10-13 17:36:03 +00:00
parent 39042c626f
commit 7cbbec1c41

View File

@@ -1183,7 +1183,7 @@ void pluginInstanceOwner::GUItoMacEvent(const nsGUIEvent& anEvent, EventRecord&
nsEventStatus pluginInstanceOwner::ProcessEvent(const nsGUIEvent& anEvent)
{
nsEventStatus rv = nsEventStatus_eIgnore;
if (!mInstance) // if mInstance is null, we shouldn't be here
if (!mInstance || !mWindow) // if the instance or the window is null, we shouldn't be here
return rv;
#ifdef XP_MAC