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

This commit is contained in:
旺阳 2023-02-21 20:10:48 +08:00 committed by GitHub
parent eaf2541018
commit aea84055fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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