Index: Source/bindings/v8/ScriptDebugServer.cpp |
diff --git a/Source/bindings/v8/ScriptDebugServer.cpp b/Source/bindings/v8/ScriptDebugServer.cpp |
index 7d70115a0261404e946d46038f45fb408e97534a..97fd008af4b04ab767fb90f777716653cb833dbb 100644 |
--- a/Source/bindings/v8/ScriptDebugServer.cpp |
+++ b/Source/bindings/v8/ScriptDebugServer.cpp |
@@ -100,7 +100,7 @@ String ScriptDebugServer::setBreakpoint(const String& sourceID, const ScriptBrea |
v8::Handle<v8::Function> setBreakpointFunction = v8::Local<v8::Function>::Cast(m_debuggerScript.newLocal(m_isolate)->Get(v8AtomicString(m_isolate, "setBreakpoint"))); |
v8::Handle<v8::Value> breakpointId = v8::Debug::Call(setBreakpointFunction, info); |
- if (!breakpointId->IsString()) |
+ if (breakpointId.IsEmpty() || !breakpointId->IsString()) |
return ""; |
*actualLineNumber = info->Get(v8AtomicString(m_isolate, "lineNumber"))->Int32Value(); |
*actualColumnNumber = info->Get(v8AtomicString(m_isolate, "columnNumber"))->Int32Value(); |