Bug 1201239 - Add a proper null check in PluginAsyncSurrogate::NotifyAsyncInitFailed; r=jimm

--HG--
extra : source : e9159912a5b372b90ddd42e19bcf1c7801c5932f
extra : amend_source : 02218c1f824ea56eec53ad73eb72a9d983690aec
This commit is contained in:
Aaron Klotz 2015-09-03 10:27:01 -06:00
parent eefc337d5d
commit d8d13ca856

View File

@ -575,8 +575,9 @@ PluginAsyncSurrogate::NotifyAsyncInitFailed()
return;
}
nsPluginInstanceOwner* owner = inst->GetOwner();
MOZ_ASSERT(owner);
owner->NotifyHostAsyncInitFailed();
if (owner) {
owner->NotifyHostAsyncInitFailed();
}
}
// static