You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2022/10/27 03:10:16 UTC
[incubator-eventmesh] branch master updated: fix issues 1905
This is an automated email from the ASF dual-hosted git repository.
mikexue 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 41c97428 fix issues 1905
new 2a078604 Merge pull request #1915 from chenqinyuan/master
41c97428 is described below
commit 41c97428057a08ca5e1bd95dc57d6a77072f99ea
Author: qinyuanchen <14...@qq.com>
AuthorDate: Wed Oct 26 21:59:13 2022 +0800
fix issues 1905
---
.../org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eventmesh-protocol-plugin/eventmesh-protocol-webhook/src/main/java/org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java b/eventmesh-protocol-plugin/eventmesh-protocol-webhook/src/main/java/org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java
index 5c8b99c1..badca0a1 100644
--- a/eventmesh-protocol-plugin/eventmesh-protocol-webhook/src/main/java/org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java
+++ b/eventmesh-protocol-plugin/eventmesh-protocol-webhook/src/main/java/org/apache/eventmesh/protocol/webhook/WebHookProtocolAdaptor.java
@@ -75,7 +75,9 @@ public class WebHookProtocolAdaptor implements ProtocolAdaptor<WebhookProtocolTr
sysHeaderMap.put("cloudEventSource", cloudEvent.getSource().toString());
sysHeaderMap.put("type", cloudEvent.getType());
httpEventWrapper.setSysHeaderMap(sysHeaderMap);
- httpEventWrapper.setBody(cloudEvent.getData().toBytes());
+ if (cloudEvent.getData() != null) {
+ httpEventWrapper.setBody(cloudEvent.getData().toBytes());
+ }
return httpEventWrapper;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org