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

This commit is contained in:
Aaron Klotz
2015-09-03 10:27:01 -06:00
parent c7011cf892
commit bbdf8753b6

View File

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