if (debugger == null) {
return null;
}
if (threads == null) {
ThreadListCommand cmd = new ThreadListCommand(this);
this.postCommand(cmd);
try {
cmd.waitUntilDone(1000);
threads = cmd.getThreads();
} catch (InterruptedException e) {
threads = new PyThread[0];
}
}
return threads;