Skip to content

Commit

Permalink
assert current thread not null
Browse files Browse the repository at this point in the history
  • Loading branch information
mbien committed Sep 17, 2023
1 parent 8dc3617 commit c4c19d0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ private void run(JPDASupport support, ThrowableConsumer<JPDASupport> supportCons
}

protected TruffleStackFrame checkStoppedAtScript(JPDAThread thread, String sourcePath, int line) {
assertNotNull("JPDAThread was null while testing: "+sourcePath, thread);
CurrentPCInfo currentPCInfo = TruffleAccess.getCurrentPCInfo(thread);
assertNotNull("Missing CurrentPCInfo, suspended at " + thread.getClassName() + "." + thread.getMethodName(), currentPCInfo);
TruffleStackFrame topFrame = currentPCInfo.getTopFrame();
Expand Down

0 comments on commit c4c19d0

Please sign in to comment.