Fixed server error when fetching score without any judgements
This commit is contained in:
parent
5fe4f10041
commit
1b390969c0
@ -71,7 +71,8 @@ class CompressJudgements {
|
||||
}
|
||||
|
||||
fun deserialize(compressedData: ByteArray): List<CircleguardService.ScoreJudgement> {
|
||||
val data = Decoder.decompress(compressedData).decompressedData
|
||||
val data = Decoder.decompress(compressedData).decompressedData ?: return emptyList()
|
||||
|
||||
val buffer = ByteBuffer.wrap(data)
|
||||
val judgements = mutableListOf<CircleguardService.ScoreJudgement>()
|
||||
var lastTime = 0.0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user