Browse Source

Fix webex teams alert plugin null exception error (#13591)

3.1.5-release
旺阳 2 years ago committed by zhuangchong
parent
commit
3f94c3cb32
  1. 2
      dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-webexteams/src/main/java/org/apache/dolphinscheduler/plugin/alert/webexteams/WebexTeamsSender.java

2
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<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");
}

Loading…
Cancel
Save