You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zi...@apache.org on 2023/02/21 12:11:03 UTC
[dolphinscheduler] branch dev updated: Fix webex teams alert plugin null exception error (#13591)
This is an automated email from the ASF dual-hosted git repository.
zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new aea84055fe Fix webex teams alert plugin null exception error (#13591)
aea84055fe is described below
commit aea84055feb656a6c9051aeb8010ded473a5df8e
Author: 旺阳 <qi...@cisco.com>
AuthorDate: Tue Feb 21 20:10:48 2023 +0800
Fix webex teams alert plugin null exception error (#13591)
---
.../dolphinscheduler/plugin/alert/webexteams/WebexTeamsSender.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-webexteams/src/main/java/org/apache/dolphinscheduler/plugin/alert/webexteams/WebexTeamsSender.java b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-webexteams/src/main/java/org/apache/dolphinscheduler/plugin/alert/webexteams/WebexTeamsSender.java
index 2d8349e9a8..f651631c89 100644
--- a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-webexteams/src/main/java/org/apache/dolphinscheduler/plugin/alert/webexteams/WebexTeamsSender.java
+++ b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-webexteams/src/main/java/org/apache/dolphinscheduler/plugin/alert/webexteams/WebexTeamsSender.java
@@ -158,7 +158,7 @@ public final class WebexTeamsSender {
for (Map map : list) {
for (Map.Entry<String, Object> entry : (Iterable<Map.Entry<String, Object>>) map.entrySet()) {
String key = entry.getKey();
- String value = entry.getValue().toString();
+ String value = entry.getValue() == null ? "" : entry.getValue().toString();
contents.append(key).append(":").append(value);
contents.append("\n");
}