Skip to content

Commit

Permalink
[ISSUE apache#3273] fix incorrect validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jett committed Feb 26, 2023
1 parent 5c63ab1 commit f25041f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void processRequest(ChannelHandlerContext ctx, AsyncContext<HttpCommand>
eventSize = Integer.parseInt(Objects.requireNonNull(event.getExtension(SendMessageBatchRequestBody.SIZE)).toString());
CloudEventData eventData = event.getData();

if (eventData != null || StringUtils.isBlank(batchId)
if (eventData == null || StringUtils.isBlank(batchId)
|| StringUtils.isBlank(producerGroup)
|| eventSize != eventList.size()) {
responseEventMeshCommand = asyncContext.getRequest().createHttpCommandResponse(
Expand Down

0 comments on commit f25041f

Please sign in to comment.