https://kotlinlang.org logo
#eap
Title
# eap
m

miha-x64

07/20/2017, 3:38 PM
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

max.kammerer

07/20/2017, 3:46 PM
@miha-x64 Please file issue with code snippet/sample
m

miha-x64

07/20/2017, 3:51 PM
@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…
79 Views