Skip to content

Commit 3648eed

Browse files
committed
A constructor that fails to validate null value properly Signed-off-by: JaeYeon Kim <[email protected]>
1 parent ec154a3 commit 3648eed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/CommonMixedErrorHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* for record and batch listeners.
3131
*
3232
* @author Gary Russell
33+
* @auther JaeYeon Kim
3334
* @since 2.8
3435
*
3536
*/
@@ -46,7 +47,7 @@ public class CommonMixedErrorHandler implements CommonErrorHandler {
4647
*/
4748
public CommonMixedErrorHandler(CommonErrorHandler recordErrorHandler, CommonErrorHandler batchErrorHandler) {
4849
Assert.notNull(recordErrorHandler, "'recordErrorHandler' cannot be null");
49-
Assert.notNull(recordErrorHandler, "'batchErrorHandler' cannot be null");
50+
Assert.notNull(batchErrorHandler, "'batchErrorHandler' cannot be null");
5051
this.recordErrorHandler = recordErrorHandler;
5152
this.batchErrorHandler = batchErrorHandler;
5253
}

0 commit comments

Comments
 (0)