8157528: jdk/jshell/ExecutionControlTest.java failed intermittently with NPE
Reviewed-by: jlahoda
This commit is contained in:
parent
5d1f9c9918
commit
7bcc48f00e
@ -171,7 +171,8 @@ class LocalExecutionControl implements ExecutionControl {
|
||||
Thread[] threadList = new Thread[execThreadGroup.activeCount()];
|
||||
execThreadGroup.enumerate(threadList);
|
||||
for (Thread thread : threadList) {
|
||||
thread.join();
|
||||
if (thread != null)
|
||||
thread.join();
|
||||
}
|
||||
|
||||
if (stopped.get()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user