From 7ad5c25d665effdc68cc15ddfd9eb57d7f38ef87 Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Thu, 15 Aug 2002 06:42:45 +0000 Subject: [PATCH] Fixing ArrayIndexOutOfBoundsException reported by Steven Beal caused by broken code to setup endLine in SourceInfo.updateLineInfo. --- .../toolsrc/org/mozilla/javascript/tools/debugger/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java b/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java index 97c176408749..35221a5cb5de 100644 --- a/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java +++ b/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java @@ -2233,7 +2233,7 @@ class SourceInfo { } int fnFirstLine = lines[0]; - int fnEndLine = lines[0]; + int fnEndLine = fnFirstLine + 1; for (int i = 1; i != lines.length; ++i) { int line = lines[i]; if (line < fnFirstLine) {