-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
NullPointerException when using ToBuilder and Singular on List-based Property #1483
Labels
Comments
I'm also seeing this issue. |
Same here. I've got a private constructor annotated with Builder with toBuilder true. |
Duplicate of #1324 – the suggested fix is not acceptable; calling .foos(null) silently doing nothing is not a sound plan. A fix for this problem is forthcoming. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having following class definition
and using following statement
throws NullPointerException in method toBuilder()
In my opinion this is an error in the implementation of the setter-method of the ValueObjectBuilder. A non-null-check only will fix this:
The text was updated successfully, but these errors were encountered: