Bug 1128064: Check for null mContent in nsPluginInstanceOwner::GetDocument; r=jimm

This commit is contained in:
Aaron Klotz 2015-03-16 15:11:13 -06:00
parent 7a4feaee85
commit a72962d364

View File

@ -580,8 +580,9 @@ NS_IMETHODIMP nsPluginInstanceOwner::ShowStatus(const char16_t *aStatusMsg)
NS_IMETHODIMP nsPluginInstanceOwner::GetDocument(nsIDocument* *aDocument)
{
if (!aDocument)
if (!aDocument || !mContent) {
return NS_ERROR_NULL_POINTER;
}
// XXX sXBL/XBL2 issue: current doc or owner doc?
// But keep in mind bug 322414 comment 33