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

@Value.Default with Option-fields throws NullPointerException #33

Open
ajkettun opened this issue Feb 3, 2021 · 1 comment
Open

@Value.Default with Option-fields throws NullPointerException #33

ajkettun opened this issue Feb 3, 2021 · 1 comment

Comments

@ajkettun
Copy link

ajkettun commented Feb 3, 2021

@Value.Default with Option fields throws NullPointerException:

   @Value.Default
   public Option<String> getFoo() {
      return Option.some("foo");
   }
error: org.immutables.value.internal.$processor$.$Processor threw java.lang.NullPointerException
        at org.immutables.value.internal.$processor$.encode.$Instantiation$6.invoke($Instantiation.java:305)
        at org.immutables.value.internal.$generator$.$Intrinsics.$($Intrinsics.java:96)
        at org.immutables.value.internal.$processor$.encode.$Generator_Renderers._t26__wasInit($Generator_Renderers.java:845)
        at org.immutables.value.internal.$processor$.encode.$Generator_Renderers$FragmentDispatch.run($Generator_Renderers.java:1167)

org.immutables:value:2.7.4
org.immutables.vavr;vavr-encodings:0.6.2

@ajkettun
Copy link
Author

ajkettun commented Feb 3, 2021

Problem could be in Immutables: immutables/immutables#1206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant