mirror of
https://github.com/correl/mage.git
synced 2024-11-22 03:00:11 +00:00
Fixed NPE error in lobby
This commit is contained in:
parent
baef4114d2
commit
2e3fabb161
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public class TournamentGameView implements Serializable {
|
|||
String duelingTime = "";
|
||||
|
||||
if (game.hasEnded()) {
|
||||
if (game.getEndTime() != null) {
|
||||
if (game.getEndTime() != null && game.getStartTime() != null) {
|
||||
duelingTime = " (" + DateFormat.getDuration((game.getEndTime().getTime() - game.getStartTime().getTime())/1000) + ')';
|
||||
}
|
||||
this.state = "Finished" + duelingTime;
|
||||
|
|
Loading…
Reference in a new issue