Andrey Tabakov
05/24/2023, 10:15 AMCannot invoke "kotlin.Lazy.getValue()" because "<local1>" is null
code:
@JsExport @OptIn(ExperimentalJsExport::class) public val constDataInMyApp: MyDataClass = MyDataClass(emptyArray())
data class AnotherDataClass(val name: String) {
public val path: MyDataClass by lazy { constDataInMyApp.someFunc(this) }
}
It works well on 1.8.21Ivan Kubyshkin [JetBrains]
05/24/2023, 10:59 AMAndrey Tabakov
05/24/2023, 11:42 AMpath$delegate=Lazy value not initialized yet
message, but for my app I got path$delegate=null
Ivan Kubyshkin [JetBrains]
05/24/2023, 12:09 PM