| Index: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
| index 8d86fa7ef2d6829db302924cbfec1003c5371dc8..8b94317ea82d9ecb06988d96dd71f86917a2850e 100644
|
| --- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
| @@ -204,7 +204,10 @@
|
|
|
| void WebEmbeddedWorkerImpl::postMessageToPageInspector(const String& message)
|
| {
|
| - m_workerInspectorProxy->dispatchMessageFromWorker(message);
|
| + WorkerInspectorProxy::PageInspector* pageInspector = m_workerInspectorProxy->pageInspector();
|
| + if (!pageInspector)
|
| + return;
|
| + pageInspector->dispatchMessageFromWorker(message);
|
| }
|
|
|
| void WebEmbeddedWorkerImpl::postTaskToLoader(PassOwnPtr<ExecutionContextTask> task)
|
|
|