diff --git a/java/src/processing/mode/java/Debugger.java b/java/src/processing/mode/java/Debugger.java index 8f1ccd72f..45d6ffc7a 100644 --- a/java/src/processing/mode/java/Debugger.java +++ b/java/src/processing/mode/java/Debugger.java @@ -1124,13 +1124,13 @@ public class Debugger implements VMEventListener { } else { StackFrame sf = t.frame(0); ObjectReference thisObject = sf.thisObject(); - if (this != null) { + if (thisObject != null) { ReferenceType type = thisObject.referenceType(); System.out.println("fields in this (" + type.name() + "):"); for (Field f : type.visibleFields()) { System.out.println(f.typeName() + " " + f.name() + " = " + thisObject.getValue(f)); } - } else { // TODO [this is not reachable - fry] + } else { System.out.println("can't get this (in native or static method)"); } }