mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 06:07:27 +08:00
[F] Fix NPE when no play data is found
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user