Added check for null pointer to avoid possible crashes, could be reason for 27558

This commit is contained in:
av%netscape.com 2000-02-16 01:49:42 +00:00
parent d964872169
commit 31d1739ac9
2 changed files with 8 additions and 2 deletions

View File

@ -1344,7 +1344,10 @@ nsresult nsObjectFrame::GetFullURL(nsIURI*& aFullURL)
nsresult nsObjectFrame::GetPluginInstance(nsIPluginInstance*& aPluginInstance)
{
return mInstanceOwner->GetInstance(aPluginInstance);
if(mInstanceOwner == nsnull)
return NS_ERROR_NULL_POINTER;
else
return mInstanceOwner->GetInstance(aPluginInstance);
}
nsresult

View File

@ -1344,7 +1344,10 @@ nsresult nsObjectFrame::GetFullURL(nsIURI*& aFullURL)
nsresult nsObjectFrame::GetPluginInstance(nsIPluginInstance*& aPluginInstance)
{
return mInstanceOwner->GetInstance(aPluginInstance);
if(mInstanceOwner == nsnull)
return NS_ERROR_NULL_POINTER;
else
return mInstanceOwner->GetInstance(aPluginInstance);
}
nsresult