https://kotlinlang.org logo
Title
a

Andrey Tabakov

05/24/2023, 10:15 AM
Hello, after update to 1.9.0-Beta I've started to receive an error
Cannot 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.21
i

Ivan Kubyshkin [JetBrains]

05/24/2023, 10:59 AM
Can you attach the full code?
a

Andrey Tabakov

05/24/2023, 11:42 AM
Actually, I can't, I've tried to reproduce it on example code, and there is no error. I've just investigate that on example code with debugger I got an
path$delegate=Lazy value not initialized yet
message, but for my app I got
path$delegate=null
I will try to reproduce P.S. I use mutliplatform JVM+JS
i

Ivan Kubyshkin [JetBrains]

05/24/2023, 12:09 PM
cc @anton.bannykh