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

Evaluation error instead of null value at runtime #564

Open
iusildra opened this issue Aug 10, 2023 · 0 comments
Open

Evaluation error instead of null value at runtime #564

iusildra opened this issue Aug 10, 2023 · 0 comments
Labels
bug Something isn't working runtime evaluation spree

Comments

@iusildra
Copy link
Contributor

iusildra commented Aug 10, 2023

Evaluating a null value returns an error instead of null

case class Nullable(s: String)

@main def test =
  val test = Nullable(null)

Evaluating test.s fails with a NullPointerException

It should be cause by the pre-evaluation as we use the type of the pre-evaluated value in RuntimePreEvaluationValidator.scala

@iusildra iusildra added runtime evaluation bug Something isn't working spree labels Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime evaluation spree
Projects
None yet
Development

No branches or pull requests

1 participant