mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix NPE when no play data is found
parent
9ef5e8d037
commit
6ce644ea18
|
@ -96,7 +96,7 @@ fun genericUserSummary(
|
||||||
rating = user.playerRating,
|
rating = user.playerRating,
|
||||||
ratingHighest = user.highestRating,
|
ratingHighest = user.highestRating,
|
||||||
ranks = ranks.map { (k, v) -> RankCount(k, v) },
|
ranks = ranks.map { (k, v) -> RankCount(k, v) },
|
||||||
maxCombo = plays.maxOf { it.maxCombo },
|
maxCombo = plays.maxOfOrNull { it.maxCombo } ?: 0,
|
||||||
fullCombo = plays.count { it.isFullCombo },
|
fullCombo = plays.count { it.isFullCombo },
|
||||||
allPerfect = plays.count { it.isAllPerfect },
|
allPerfect = plays.count { it.isAllPerfect },
|
||||||
totalScore = user.totalScore,
|
totalScore = user.totalScore,
|
||||||
|
|
Loading…
Reference in New Issue