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

Fix #5155: NPE in BeanValidator when the ValueReference has no base class #5156

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

rmartinc
Copy link
Contributor

Fixes #5155

Just adding the condition to skip the validation if there is no base class. With jakarta validation the value reference can be returned with the attribute but no base class. Test was added adding the hibernate-validator dependency for testing. If you see any problem or improvement just let me know.

…as no base class

Signed-off-by: rmartinc <rmartinc@redhat.com>
@BalusC
Copy link
Contributor

BalusC commented Oct 20, 2022

LGTM

@BalusC BalusC merged commit 245ce7f into eclipse-ee4j:master Oct 20, 2022
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

Successfully merging this pull request may close these issues.

NPE in BeanValidator when the ValueReference has no base class
3 participants