[F] Bot renderer crash when b35 or b15 is empty

pull/78/head
Clansty 2024-10-27 04:31:38 +08:00
parent 80536ef4fb
commit 5eb0424ee7
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ class Maimai2(
val b35Str = extra["recent_rating"] ?: (400 - "No rating found")
val b15Str = extra["recent_rating_new"] ?: (400 - "No rating found")
val b35 = b35Str.split(',').map { it.split(':') }
val b15 = b15Str.split(',').map { it.split(':') }
val b35 = b35Str.split(',').filterNot { it.isBlank() }.map { it.split(':') }
val b15 = b15Str.split(',').filterNot { it.isBlank() }.map { it.split(':') }
val musicIdList = listOf(
b35.map { it[0].toInt() },