mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix(X-Pack): 阈值告警-可能存在的NPE
This commit is contained in:
@@ -219,7 +219,7 @@ public class ChartViewThresholdManage {
|
||||
if (ObjectUtils.isEmpty(fieldDTO)) continue;
|
||||
String fieldDTOName = fieldDTO.getName();
|
||||
String dataeaseName = fieldDTO.getDataeaseName();
|
||||
List<String> valueList = rows.stream().map(row -> row.get(dataeaseName).toString()).collect(Collectors.toList());
|
||||
List<String> valueList = rows.stream().map(row -> ObjectUtils.isEmpty(row.get(dataeaseName)) ? null : row.get(dataeaseName).toString()).collect(Collectors.toList());
|
||||
String replacement = fieldDTOName + ": " + JsonUtil.toJSONString(valueList);
|
||||
// 替换文本
|
||||
matcher.appendReplacement(sb, replacement);
|
||||
|
||||
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 08153f88e0...f0301c703b
Reference in New Issue
Block a user