Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
index 0c1e97bc00f898363e1425c53b1f717d1156627d..843816b2044ce00649c8e8e613d74eb5afe5a237 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
@@ -294,8 +294,11 @@ WebInspector.ConsoleView.prototype = { |
// Start Dart specific code. |
var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); |
- debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerPaused, this._debuggerPaused, this); |
- debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerResumed, this._debuggerResumed, this); |
+ // FIXMEDART(terry): Added sentry for possible debuggerModel being null for Dartium. |
+ if (debuggerModel != null) { |
+ debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerPaused, this._debuggerPaused, this); |
+ debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerResumed, this._debuggerResumed, this); |
+ } |
// End Dart specific code. |
}, |