You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Xml(name = "story-state")
data class StoryState(
@Element(
typesByElement = arrayOf(
ElementNameMatcher(type = StoryPathElement.Telling::class),
ElementNameMatcher(type = StoryPathElement.Actions::class),
ElementNameMatcher(type = StoryPathElement.GameOver::class),
ElementNameMatcher(type = StoryPathElement.GameWin::class)
)
) val storyPath: MutableList<StoryPathElement> = mutableListOf()
)
And exception: Caused by java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter storyPath
The text was updated successfully, but these errors were encountered:
Yeah, that is a java optimization, which is not playing well with kotlin
null safety. Just initialize it with new ArrayList manually as temporary
work around.
Alexandr <[email protected]> schrieb am Fr., 7. Apr. 2017, 22:41:
Data class:
@xml(name = "story-state")
data class StoryState(
@element(
typesByElement = arrayOf(
ElementNameMatcher(type = StoryPathElement.Telling::class),
ElementNameMatcher(type = StoryPathElement.Actions::class),
ElementNameMatcher(type = StoryPathElement.GameOver::class),
ElementNameMatcher(type = StoryPathElement.GameWin::class)
)
) val storyPath: MutableList<StoryPathElement> = mutableListOf()
)
And exception:
Caused by java.lang.IllegalArgumentException: Parameter specified as
non-null is null: method
kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter storyPath
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#64>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjnrpdZKVaK3EFMKYWWmzpOMJajLnWbks5rtp-UgaJpZM4M3XiI>
.
Data class:
And exception:
Caused by java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter storyPath
The text was updated successfully, but these errors were encountered: