Initializing _finishedMatches in constructor.

This commit is contained in:
marcins78
2013-01-02 15:25:40 +00:00
parent af7469da7e
commit a3054cae84

View File

@@ -37,7 +37,7 @@ public class DefaultTournament implements Tournament {
private Map<String, Integer> _playerByes;
private Set<String> _currentlyPlayingPlayers;
private Set<TournamentMatch> _finishedTournamentMatches = new HashSet<TournamentMatch>();
private Set<TournamentMatch> _finishedTournamentMatches;
private TournamentService _tournamentService;
@@ -68,6 +68,7 @@ public class DefaultTournament implements Tournament {
_playerDecks = new HashMap<String, LotroDeck>(_tournamentService.getPlayerDecks(_tournamentId));
_droppedPlayers = new HashSet<String>(_tournamentService.getDroppedPlayers(_tournamentId));
_playerByes = new HashMap<String, Integer>(_tournamentService.getPlayerByes(_tournamentId));
_finishedTournamentMatches = new HashSet<TournamentMatch>();
if (_tournamentStage == Stage.PLAYING_GAMES) {
Map<String, String> matchesToCreate = new HashMap<String, String>();