Hi,
I have similar (or the same) problem that was described in HV-1013. That is, a object, which has mandatory field (@NotNull) which I want to validate. While validation is done and the field is null, the validator ends up calling object's hashCode which in our case tries to call member variables hashCode for null field. This lead to the NPE.
The call is done here: https://github.com/hibernate/hibernate-validator/blob/master/engine/src/main/java/org/hibernate/validator/internal/engine/ConstraintViolationImpl.java#L330
I created a simple test, where the problem happens: https://github.com/VaiTuomoMakela/NotNullHibernateValidation |
|