Chromium Code Reviews| Index: Source/core/inspector/InjectedScript.cpp |
| diff --git a/Source/core/inspector/InjectedScript.cpp b/Source/core/inspector/InjectedScript.cpp |
| index 507988c1954296f6253853cf4e5a614001fbf650..17f9ebbc7918d68ff6689b48a0c02c7627a874aa 100644 |
| --- a/Source/core/inspector/InjectedScript.cpp |
| +++ b/Source/core/inspector/InjectedScript.cpp |
| @@ -242,7 +242,7 @@ PassRefPtr<Array<CallFrame> > InjectedScript::wrapCallFrames(const ScriptValue& |
| ScriptValue callFramesValue = callFunctionWithEvalEnabled(function, hadException); |
| ASSERT(!hadException); |
| RefPtr<JSONValue> result = callFramesValue.toJSONValue(scriptState()); |
| - if (result->type() == JSONValue::TypeArray) |
| + if (result && result->type() == JSONValue::TypeArray) |
|
aandrey
2014/06/18 10:41:55
Looks like this is the only place in this file whe
|
| return Array<CallFrame>::runtimeCast(result); |
| return Array<CallFrame>::create(); |
| } |