mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
NullPointerException fix
This commit is contained in:
parent
3df4af2104
commit
3a6974c0b0
1 changed files with 3 additions and 1 deletions
|
@ -489,7 +489,9 @@ public class ComputerPlayer6 extends ComputerPlayer /*implements Player*/ {
|
|||
maxSeconds = 3600;
|
||||
}
|
||||
logger.debug("maxThink: " + maxSeconds + " seconds ");
|
||||
return task.get(maxSeconds, TimeUnit.SECONDS);
|
||||
if (task.get(maxSeconds, TimeUnit.SECONDS) != null) {
|
||||
return task.get(maxSeconds, TimeUnit.SECONDS);
|
||||
}
|
||||
} catch (TimeoutException e) {
|
||||
logger.info("simulating - timed out");
|
||||
task.cancel(true);
|
||||
|
|
Loading…
Reference in a new issue