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; }