saowu commented on code in PR #16595:
URL:
https://github.com/apache/dolphinscheduler/pull/16595#discussion_r1748076645
##########
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-feishu/src/main/java/org/apache/dolphinscheduler/plugin/alert/feishu/FeiShuSender.java:
##########
@@ -118,7 +119,7 @@ public static String formatContent(AlertData alertData) {
for (Map map : list) {
for (Entry<String, Object> entry : (Iterable<Entry<String,
Object>>) map.entrySet()) {
String key = entry.getKey();
- String value = entry.getValue().toString();
+ String value = Objects.nonNull(entry.getValue()) ?
entry.getValue().toString() : null;
Review Comment:
This parameter is used to verify npe and does not exist.
#16573
The sql query results are sent via Feishu, and the field value in the query
results is null
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]