Browse Source

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

3.2.0-release
旺阳 2 years ago committed by GitHub
parent
commit
aea84055fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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

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

Loading…
Cancel
Save