This is an automated email from the ASF dual-hosted git repository.

mytang0 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new d53171a6d [#3257] Null Pointer Exception
     new 1afc67397 Merge pull request #3279 from nikam14/patch-4
d53171a6d is described below

commit d53171a6d9024f1154682ceb438a85594837b421
Author: maheshnikam <[email protected]>
AuthorDate: Mon Feb 27 15:16:03 2023 +0530

    [#3257] Null Pointer Exception
    
    made the changes mentioned in issue #3257 .
    looking forward for any other changes.
---
 .../apache/eventmesh/client/http/producer/EventMeshMessageProducer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/producer/EventMeshMessageProducer.java
 
b/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/producer/EventMeshMessageProducer.java
index 6f959b5a6..fcfcc9659 100644
--- 
a/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/producer/EventMeshMessageProducer.java
+++ 
b/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/producer/EventMeshMessageProducer.java
@@ -98,7 +98,7 @@ class EventMeshMessageProducer extends 
AbstractProducerHttpClient<EventMeshMessa
         final SendMessageResponseBody.ReplyMessage replyMessage = 
JsonUtils.parseObject(retObj.getRetMsg(),
             SendMessageResponseBody.ReplyMessage.class);
         return EventMeshMessage.builder()
-            .content(replyMessage.body)
+            .content(Objects.requireNonNUll(replyMessage, "ReplyMessage must 
not be null").body)
             .prop(replyMessage.properties)
             .topic(replyMessage.topic).build();
     }


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

Reply via email to