TableController.java: change warning message when match == null to avoid nullpointer exception

This commit is contained in:
Bruno Chevalier 2020-08-31 14:14:25 +02:00
parent 21c80a3caa
commit 672b78982f

View file

@ -971,7 +971,7 @@ public class TableController {
if (!(table.getState() == TableState.WAITING || table.getState() == TableState.STARTING || table.getState() == TableState.READY_TO_START)) {
if (match == null) {
logger.warn("- Match table with no match:");
logger.warn("-- matchId:" + match.getId() + " , table : " + table.getId());
logger.warn("-- match: null , table : " + table.getId());
// return false;
} else if (match.isDoneSideboarding() && match.getGame() == null) {
// no sideboarding and not active game -> match seems to hang (maybe the Draw bug)