bj0
02/06/2018, 10:20 PMdata class
that has a parameter metadata: List<Item>
, and I'm creating it from a nullable with: metadata?.map { Item(it.key, it.value) } ?: listOf()
. Which is compiling fine, but when metadata is null I'm getting: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull
Andreas Sinz
02/07/2018, 7:53 AMItem(it.key, it.value)
will throw, when either key
or value
is null (Depending on the definition of Item
)araqnid
02/07/2018, 11:35 AMaraqnid
02/07/2018, 11:49 AMbj0
02/07/2018, 3:53 PMSimpleXML
and I print to adb metadata
, which is itself null, when it happens. I think it might be a compiler bug though because sometimes when I build and run it, it does not happen (i'm using the same test xml over and over)