Skip to content

Commit aa5f199

Browse files
committed
Fix crash when entering static methods
Fixes processing#3590
1 parent c6de8e8 commit aa5f199

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/src/processing/mode/java/Debugger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,8 @@ protected String thisName(ThreadReference t) {
920920
if (!t.isSuspended() || t.frameCount() == 0) {
921921
return "";
922922
}
923-
return t.frame(0).thisObject().referenceType().name();
923+
ObjectReference ref = t.frame(0).thisObject();
924+
return ref == null ? "" : ref.referenceType().name();
924925

925926
} catch (IncompatibleThreadStateException ex) {
926927
log(Level.SEVERE, null, ex);

0 commit comments

Comments
 (0)