Validator invokes hashCode() with null mandatory field

Description

Hello,

I have mandatory field in object which I want to validate:

But when I'm trying to validate it using the Hibernate Validator I receive an exception:

Problem is that Validator invokes hashCode() with null mandatory field. But purpose of validation is to check nullability of this field and produce a validation error. Current behavior is conceptually wrong from my point of view.

Thanks in advance!

Environment

Hibernate 4.2.12.Final

Assignee

Gunnar Morling

Reporter

oleg

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure