mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
* Fixed possible NPE in TableController (fixes #298).
This commit is contained in:
parent
c5a21a5c88
commit
3092373d1d
1 changed files with 3 additions and 1 deletions
|
@ -435,7 +435,9 @@ public class TableController {
|
|||
TournamentManager.getInstance().createTournamentSession(tournament, userPlayerMap, table.getId());
|
||||
for (Entry<UUID, UUID> entry: userPlayerMap.entrySet()) {
|
||||
User user = UserManager.getInstance().getUser(entry.getKey());
|
||||
user.tournamentStarted(tournament.getId(), entry.getValue());
|
||||
if (user != null) {
|
||||
user.tournamentStarted(tournament.getId(), entry.getValue());
|
||||
}
|
||||
}
|
||||
ServerMessagesUtil.getInstance().incTournamentsStarted();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue