-
Bug
-
Resolution: Done
-
Major
-
3.0.4.Final, 3.0.5.Final
-
None
-
None
Exactly the same issue as RESTEASY-913 but in another method (validateAllParameters). I can also see the same potential issue in validateReturnValue.
When a parameter annotated with @NotNull is passed a null value the class org.jboss.resteasy.plugins.validation.GeneralValidatorImpl will fail with a NullPointerException on line 106 This is due to the code calling toString() on the invalid null value.
So in the line below "cv.getInvalidValue()" is called, returns a null and has "toString()" called on the null value.
rcvs.add(new ResteasyConstraintViolation(ct, cv.getPropertyPath().toString(), cv.getMessage(), cv.getInvalidValue().toString()));
- clones
-
RESTEASY-913 Null pointer exception in GeneralValidatorImpl
- Closed