diff --git a/modules/plugin/base/src/nsNPAPIPlugin.cpp b/modules/plugin/base/src/nsNPAPIPlugin.cpp index b517f91d0d4..dbafa53964d 100644 --- a/modules/plugin/base/src/nsNPAPIPlugin.cpp +++ b/modules/plugin/base/src/nsNPAPIPlugin.cpp @@ -910,12 +910,16 @@ OnShutdown() AsyncCallbackAutoLock::AsyncCallbackAutoLock() { - sPluginThreadAsyncCallLock->Lock(); + if (sPluginThreadAsyncCallLock) { + sPluginThreadAsyncCallLock->Lock(); + } } AsyncCallbackAutoLock::~AsyncCallbackAutoLock() { - sPluginThreadAsyncCallLock->Unlock(); + if (sPluginThreadAsyncCallLock) { + sPluginThreadAsyncCallLock->Unlock(); + } }