From bbdf8753b699f7e91cb2c439014956e745e2b47c Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Thu, 3 Sep 2015 10:27:01 -0600 Subject: [PATCH] Bug 1201239 - Add a proper null check in PluginAsyncSurrogate::NotifyAsyncInitFailed; r=jimm --- dom/plugins/ipc/PluginAsyncSurrogate.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dom/plugins/ipc/PluginAsyncSurrogate.cpp b/dom/plugins/ipc/PluginAsyncSurrogate.cpp index 9e15f52e6aa8..0150e0fb3311 100644 --- a/dom/plugins/ipc/PluginAsyncSurrogate.cpp +++ b/dom/plugins/ipc/PluginAsyncSurrogate.cpp @@ -575,8 +575,9 @@ PluginAsyncSurrogate::NotifyAsyncInitFailed() return; } nsPluginInstanceOwner* owner = inst->GetOwner(); - MOZ_ASSERT(owner); - owner->NotifyHostAsyncInitFailed(); + if (owner) { + owner->NotifyHostAsyncInitFailed(); + } } // static