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