Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin DSL 'transformEvent' doesn't play nice with Java classes #1488

Closed
basdgrt opened this issue May 9, 2023 · 0 comments · Fixed by #1490
Closed

Kotlin DSL 'transformEvent' doesn't play nice with Java classes #1488

basdgrt opened this issue May 9, 2023 · 0 comments · Fixed by #1490
Assignees
Labels

Comments

@basdgrt
Copy link
Contributor

basdgrt commented May 9, 2023

Trying to apply transformEvent on a Java class results in an error.

Example:

val recipe = recipe("myRecipe") {
    interaction<JavaInteraction> {
        transformEvent<SomeJavaClass>(newName = "foo")
    }
}

Error:

java.lang.NullPointerException: Cannot invoke "scala.collection.mutable.Buffer.toArray(scala.reflect.ClassTag)" 
because the return value of "scala.collection.convert.AsScalaExtensions$ListHasAsScala.asScala()" is null
@basdgrt basdgrt added the bug label May 9, 2023
@basdgrt basdgrt self-assigned this May 9, 2023
@basdgrt basdgrt linked a pull request May 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant