mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Fixed a possible exception in MatchView.
This commit is contained in:
parent
89397aa44e
commit
6e13b3ec14
1 changed files with 7 additions and 2 deletions
|
|
@ -102,8 +102,13 @@ public class MatchView implements Serializable {
|
|||
}
|
||||
sb2.append(lostGames).append("], ");
|
||||
}
|
||||
players = sb1.substring(0, sb1.length() - 2);
|
||||
result = sb2.substring(0, sb2.length() - 2);
|
||||
if (sb1.length() > 2) {
|
||||
players = sb1.substring(0, sb1.length() - 2);
|
||||
result = sb2.substring(0, sb2.length() - 2);
|
||||
} else {
|
||||
players = "[no players]";
|
||||
result = "";
|
||||
}
|
||||
this.startTime = match.getStartTime();
|
||||
this.endTime = match.getEndTime();
|
||||
this.replayAvailable = match.isReplayAvailable();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue