mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-10 12:10:10 +08:00
Fix #5
This commit is contained in:
parent
d2c39ba482
commit
2e0f31816f
@ -299,7 +299,7 @@ interface ConfigSection : Config, MutableMap<String, Any> {
|
||||
}
|
||||
|
||||
override fun getStringList(key: String): List<String> {
|
||||
return ((get(key) ?: throw NoSuchElementException(key)) as List<*>).map { it.toString() }
|
||||
return ((get(key) ?: throw NoSuchElementException(key)) as List<*>).filterNotNull().map { it.toString() }
|
||||
}
|
||||
|
||||
override fun getIntList(key: String): List<Int> {
|
||||
|
Loading…
Reference in New Issue
Block a user