aproved leaf. reviews sfraser. checking for null stopping crash

git-svn-id: svn://10.0.0.236/trunk@49164 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com 1999-09-28 00:13:19 +00:00
parent d5fbf6d4a3
commit 2c13db81d8
2 changed files with 6 additions and 0 deletions

View File

@ -1285,6 +1285,9 @@ nsObjectFrame::HandleEvent(nsIPresContext& aPresContext,
nsresult rv = NS_OK;
//~~~
//FIX FOR CRASHING WHEN NO INSTANCE OWVER
if (!mInstanceOwner)
return NS_ERROR_NULL_POINTER;
#ifdef XP_WIN
nsPluginWindow * window;
mInstanceOwner->GetWindow(window);

View File

@ -1285,6 +1285,9 @@ nsObjectFrame::HandleEvent(nsIPresContext& aPresContext,
nsresult rv = NS_OK;
//~~~
//FIX FOR CRASHING WHEN NO INSTANCE OWVER
if (!mInstanceOwner)
return NS_ERROR_NULL_POINTER;
#ifdef XP_WIN
nsPluginWindow * window;
mInstanceOwner->GetWindow(window);