From 3f94c3cb326515363ebd3c6f5e512c85ff35132c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=BA=E9=98=B3?= Date: Tue, 21 Feb 2023 20:10:48 +0800 Subject: [PATCH] Fix webex teams alert plugin null exception error (#13591) --- .../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 44a3403e80..20c9c13be4 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 @@ -156,7 +156,7 @@ public final class WebexTeamsSender { for (Map map : list) { for (Map.Entry entry : (Iterable>) 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"); }