mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Added check for null pointer to avoid possible crashes, could be reason for 27558
This commit is contained in:
parent
d964872169
commit
31d1739ac9
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user