hoplite: Upgrading from 1.4.9 to more recent versions throws NoSuchElementException
I’ve tried upgrading from 1.4.9 to 1.4.10 and above, but I get the following stacktrace:
java.util.NoSuchElementException: List is empty.
at kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:212)
at com.sksamuel.hoplite.decoder.DataClassDecoder.safeDecode(DataClassDecoder.kt:116)
at com.sksamuel.hoplite.decoder.NullHandlingDecoder$DefaultImpls.decode(Decoder.kt:85)
at com.sksamuel.hoplite.decoder.DataClassDecoder.decode(DataClassDecoder.kt:28)
at com.sksamuel.hoplite.ConfigLoader.decode(ConfigLoader.kt:400)
at com.sksamuel.hoplite.ConfigLoader.loadConfig(ConfigLoader.kt:386)
...
I haven’t narrowed what in our config is causing this as yet, but if I do, I’ll update the issue with the details.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (9 by maintainers)
Commits related to this issue
- Fixed empty constructor bug #236 — committed to sksamuel/hoplite by sksamuel 3 years ago
Ok publishing 1.4.15 now with fix.