nikam14 commented on code in PR #3817:
URL: https://github.com/apache/eventmesh/pull/3817#discussion_r1183263353


##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/grpc/processor/BatchPublishMessageProcessor.java:
##########
@@ -103,7 +104,7 @@ public void process(BatchMessage message, 
EventEmitter<Response> emitter) throws
 
         for (CloudEvent event : cloudEvents) {
             String seqNum = event.getId();
-            String uniqueId = (event.getExtension(ProtocolKey.UNIQUE_ID) == 
null) ? "" : event.getExtension(ProtocolKey.UNIQUE_ID).toString();
+            String uniqueId = (event.getExtension(ProtocolKey.UNIQUE_ID) == 
null) ? "" : 
Objects.requireNonNull(event).getExtension(ProtocolKey.UNIQUE_ID).toString();

Review Comment:
   changed the line in this 
[pr](https://github.com/nikam14/incubator-eventmesh/pull/1). 
   waiting for your respose to make PR to main repo.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to