| Index: third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp b/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
|
| index 44c20af6cac7aaead2f95dfbee486825c7198c5d..aceecc241d5503944ab7ed0a63606f743e6c4e10 100644
|
| --- a/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
|
| @@ -212,6 +212,8 @@ void V8RuntimeAgentImpl::reportExecutionContextCreated(ScriptState* scriptState,
|
| if (!m_enabled)
|
| return;
|
| InjectedScript* injectedScript = injectedScriptManager()->injectedScriptFor(scriptState);
|
| + if (!injectedScript)
|
| + return;
|
| RefPtr<ExecutionContextDescription> description = ExecutionContextDescription::create()
|
| .setId(injectedScript->contextId())
|
| .setName(humanReadableName)
|
|
|