Skip to content

Commit

Permalink
HotFix match response npe
Browse files Browse the repository at this point in the history
  • Loading branch information
tlsgmltjd committed Apr 20, 2024
1 parent 0fade3c commit 5714bbb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public MatchResponse execute(int month, int day) {
.matchId(match.getMatchId())
.matchType(match.getMatchType())
.matchLevel(match.getMatchLevel())
.teamAId(match.getTeamA().getTeamId())
.teamAName(match.getTeamA().getTeamName())
.teamAId(match.getTeamA() != null ? match.getTeamA().getTeamId() : null)
.teamAName(match.getTeamA() != null ? match.getTeamA().getTeamName() : null)
.teamAGrade(match.getTeamAGrade())
.teamAClassType(match.getTeamAClassType())
.teamBId(match.getTeamB().getTeamId())
.teamBName(match.getTeamB().getTeamName())
.teamBId(match.getTeamB() != null ? match.getTeamB().getTeamId() : null)
.teamBName(match.getTeamB() != null ? match.getTeamB().getTeamName() : null)
.teamBGrade(match.getTeamBGrade())
.teamBClassType(match.getTeamBClassType())
.badmintonRank(match.getTeamA().getBadmintonRank())
Expand Down

0 comments on commit 5714bbb

Please sign in to comment.