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.
2 parents c7ac13d + d0bc682 commit aa60f84Copy full SHA for aa60f84
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