Skip to content

Commit 199be6a

Browse files
committed
ValidationUtils.invokeValidator assertion for non-null target object
1 parent 99da8e1 commit 199be6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-context/src/main/java/org/springframework/validation/ValidationUtils.java

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public static void invokeValidator(
7171
Validator validator, Object target, Errors errors, @Nullable Object... validationHints) {
7272

7373
Assert.notNull(validator, "Validator must not be null");
74+
Assert.notNull(target, "Target object must not be null");
7475
Assert.notNull(errors, "Errors object must not be null");
7576

7677
if (logger.isDebugEnabled()) {

0 commit comments

Comments
 (0)