This commit is contained in:
ryoii 2020-03-12 20:37:49 +08:00
parent d2c39ba482
commit 2e0f31816f

View File

@ -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> {