From 0943483fa14405e503da0c10b0a611cfbdbeccc7 Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Wed, 30 Jun 2004 09:38:54 +0000 Subject: [PATCH] Fixing JDK 1.3 compatibility: TableModel.getRot() should not return null there. --- .../mozilla/javascript/tools/debugger/DebugGui.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java b/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java index 796a3286144..690761dcd4d 100644 --- a/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java +++ b/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java @@ -1105,9 +1105,11 @@ class Evaluator extends JTable { } } -class VariableModel implements TreeTableModel { +class VariableModel implements TreeTableModel +{ - static class VariableNode { + static class VariableNode + { Object object; Object id; VariableNode[] children; @@ -1155,7 +1157,9 @@ class VariableModel implements TreeTableModel { public Object getRoot() { - if (debugger == null) { return null; } + if (debugger == null) { + return ""; + } return root; }