Skip to content

Commit 982b532

Browse files
authored
GH-3917: Fix CommonMixedErrorHandler ctor for proper validation
Fixes: #3917 Issue link: #3917 * Fixed a null check issue in the constructor of `CommonMixedErrorHandler` Signed-off-by: JaeYeon Kim <[email protected]> **Auto-cherry-pick to `3.3.x` & `3.2.x`**
1 parent cff9236 commit 982b532

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+
* @author 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)