FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix crash when entering static methods · mplee/processing@aa5f199 · GitHub

Repository navigation

Commit aa5f199

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL