ValidationUtils.invokeValidator assertion for non-null target object

This commit is contained in:
Juergen Hoeller
2018-12-17 14:24:56 +01:00
parent 99da8e1477
commit 199be6aec5

View File

@@ -71,6 +71,7 @@ public abstract class ValidationUtils {
Validator validator, Object target, Errors errors, @Nullable Object... validationHints) {
Assert.notNull(validator, "Validator must not be null");
Assert.notNull(target, "Target object must not be null");
Assert.notNull(errors, "Errors object must not be null");
if (logger.isDebugEnabled()) {