I’m getting a very weird and painful exception whi...
# eap
m
I’m getting a very weird and painful exception while trying to execute tests both with eap-11 and eap-33:
Copy code
java.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
. 🙀
m
@miha-x64 Please file issue with code snippet/sample
m
@max.kammerer I’d be glad to do so, but I’m unable to reproduce it from scratch, in a new clean project.
Finally caught it, was looking at wrong
map
, there may be some issues with
LineNumberTable
generation…