Fixed NullPointerException when fail to get forge list.

This commit is contained in:
huangyuhui
2017-01-20 12:44:14 +08:00
parent da2f0b234f
commit db4615a2d3
3 changed files with 11 additions and 7 deletions

View File

@@ -112,9 +112,10 @@ public class TaskList extends Thread {
}
try {
counter.await();
} catch (InterruptedException ignore) {
return bool.get();
} catch (InterruptedException ignore) { // this task is canceled, so failed.
return false;
}
return bool.get();
}
private boolean executeTask(Task t) {