We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b4716d commit d0bc682Copy full SHA for d0bc682
espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/JDWPContextImpl.java
@@ -666,7 +666,10 @@ public CallFrame locateObjectWaitFrame() {
666
public Object getMonitorOwnerThread(Object object) {
667
if (object instanceof StaticObject) {
668
EspressoLock lock = ((StaticObject) object).getLock(context);
669
- return asGuestThread(lock.getOwnerThread());
+ Thread ownerThread = lock.getOwnerThread();
670
+ if (ownerThread != null) {
671
+ return asGuestThread(ownerThread);
672
+ }
673
}
674
return null;
675
0 commit comments