You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by my...@apache.org on 2023/02/27 09:50:15 UTC

[incubator-eventmesh] branch master updated: [#3257] Null Pointer Exception

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 <55...@users.noreply.github.com>
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: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org