Minor fix for user handling.

This commit is contained in:
LevelX2 2017-09-05 17:53:03 +02:00
parent d5284ae226
commit 8221a68efe

View file

@ -170,9 +170,11 @@ public class TournamentSession {
} }
private void removeTournamentForUser() { private void removeTournamentForUser() {
UserManager.instance.getUser(userId).ifPresent(user Optional<User> user = UserManager.instance.getUser(userId);
-> user.removeTournament(playerId)); if (user.isPresent()) {
user.get().removeTable(playerId);
user.get().removeTournament(playerId);
}
} }
} }