mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
TableController.java: change warning message when match == null to avoid nullpointer exception
This commit is contained in:
parent
21c80a3caa
commit
672b78982f
1 changed files with 1 additions and 1 deletions
|
|
@ -971,7 +971,7 @@ public class TableController {
|
||||||
if (!(table.getState() == TableState.WAITING || table.getState() == TableState.STARTING || table.getState() == TableState.READY_TO_START)) {
|
if (!(table.getState() == TableState.WAITING || table.getState() == TableState.STARTING || table.getState() == TableState.READY_TO_START)) {
|
||||||
if (match == null) {
|
if (match == null) {
|
||||||
logger.warn("- Match table with no match:");
|
logger.warn("- Match table with no match:");
|
||||||
logger.warn("-- matchId:" + match.getId() + " , table : " + table.getId());
|
logger.warn("-- match: null , table : " + table.getId());
|
||||||
// return false;
|
// return false;
|
||||||
} else if (match.isDoneSideboarding() && match.getGame() == null) {
|
} else if (match.isDoneSideboarding() && match.getGame() == null) {
|
||||||
// no sideboarding and not active game -> match seems to hang (maybe the Draw bug)
|
// no sideboarding and not active game -> match seems to hang (maybe the Draw bug)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue