mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +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;
|
maxSeconds = 3600;
|
||||||
}
|
}
|
||||||
logger.debug("maxThink: " + maxSeconds + " seconds ");
|
logger.debug("maxThink: " + maxSeconds + " seconds ");
|
||||||
|
if (task.get(maxSeconds, TimeUnit.SECONDS) != null) {
|
||||||
return task.get(maxSeconds, TimeUnit.SECONDS);
|
return task.get(maxSeconds, TimeUnit.SECONDS);
|
||||||
|
}
|
||||||
} catch (TimeoutException e) {
|
} catch (TimeoutException e) {
|
||||||
logger.info("simulating - timed out");
|
logger.info("simulating - timed out");
|
||||||
task.cancel(true);
|
task.cancel(true);
|
||||||
|
|
Loading…
Reference in a new issue