ExceptionInInitializerError
when @Serializable
data object contains NavDeepLink
#2857
Labels
ExceptionInInitializerError
when @Serializable
data object contains NavDeepLink
#2857
Describe the bug
While setting up my navigation graph, I ran into an
ExceptionInInitializerError
when trying to use@Serializable
on adata object
containing aNavDeepLink
member.Making the member
@Transient
did not help and it seems to me that the exception is caused in the generatedstatic
initializer., i.e. here somewhere (extract fromReproduction.decompiled.java
further down):Full Stack trace
To Reproduce
Run the
Reproduction.kt
unit test in https://github.com/FelixZY/kotlinx-serialization-plugin-bug . The code introducing the issue is separated into commit1cf8080
.Reproduction junit test
Reproduction.decompiled.java
Expected behavior
The program should not crash when referencing
MySerializableObject
or its serializer.Written another way: the
Reproduction.kt
unit test should pass.Environment
The text was updated successfully, but these errors were encountered: