jackfanwan commented on code in PR #11033:
URL: https://github.com/apache/dolphinscheduler/pull/11033#discussion_r925424696
##########
dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertSenderService.java:
##########
@@ -93,6 +97,13 @@ public void send(List<Alert> alerts) {
continue;
}
AlertData alertData = new AlertData();
+ if (Objects.nonNull(alert.getContent())
+ && !alert.getContent().startsWith("[")
Review Comment:
Since jsonNodes are not related to JSONArray, instanceof cannot be used. I
also tried isArray(), but I found that isArray() always returns false
--
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]