Reviewers: podivilov,

Description:
Fix null pointer exception with actual breakpoint position

Please review this at http://codereview.chromium.org/2957001/show

Affected files:
  M src/debug-debugger.js


Index: src/debug-debugger.js
diff --git a/src/debug-debugger.js b/src/debug-debugger.js
index 47a3c8e3ef550eb7ed1ceec737ef2688b3d9f7f7..569e51085e0e2ef01ac948d4d5e4ae1ff17c1073 100644
--- a/src/debug-debugger.js
+++ b/src/debug-debugger.js
@@ -401,8 +401,10 @@ ScriptBreakPoint.prototype.set = function (script) {
     actual_position = position;
   }
   var actual_location = script.locationFromPosition(actual_position, true);
-  break_point.actual_location = { line: actual_location.line,
-                                  column: actual_location.column };
+  if (actual_location) {
+    break_point.actual_location = { line: actual_location.line,
+                                    column: actual_location.column };
+  }
   this.break_points_.push(break_point);
   return break_point;
 };


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to