| Index: third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp
|
| index 70eeef743bccd7777126dc9be45455c501a263fe..c874469aa10353b37a8c08d40ff85908e9211d9d 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp
|
| @@ -89,9 +89,14 @@ void V8InspectorSessionImpl::discardInjectedScripts()
|
|
|
| InjectedScript* V8InspectorSessionImpl::findInjectedScript(ErrorString* errorString, int contextId)
|
| {
|
| + if (!contextId) {
|
| + *errorString = "Cannot find context with specified id";
|
| + return nullptr;
|
| + }
|
| +
|
| const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_contextGroupId);
|
| if (!contexts || !contexts->contains(contextId)) {
|
| - *errorString = "Inspected frame has gone";
|
| + *errorString = "Cannot find context with specified id";
|
| return nullptr;
|
| }
|
|
|
|
|