miha-x64
07/20/2017, 3:38 PMjava.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.collections.CollectionsKt__IterablesKt.collectionSizeOrDefault, parameter $receiver
at kotlin.collections.CollectionsKt__IterablesKt.collectionSizeOrDefault(Iterables.kt)
at my.code.SomeClass.method(deserializers.kt:439)
...
click on deserializers.kt:439
-> Inline function call site
shows me deserializert.kt:107
, which is someMap.map { (_, value) ->
.
Click on Inline function body
passes me to Iterable.map
function source (which really contains a call to collectionSizeOrDefault
), but both Cmd+click on .map {
and bytecode show me that Map.map
function should be / was actually inlined, and it does not contain any calls to collectionSizeOrDefault
. 🙀max.kammerer
07/20/2017, 3:46 PMmiha-x64
07/20/2017, 3:51 PMmap
, there may be some issues with LineNumberTable
generation…