diff --git a/backend/src/main/java/io/dataease/service/chart/ChartViewService.java b/backend/src/main/java/io/dataease/service/chart/ChartViewService.java index 1afc9432b3..63306c1af5 100644 --- a/backend/src/main/java/io/dataease/service/chart/ChartViewService.java +++ b/backend/src/main/java/io/dataease/service/chart/ChartViewService.java @@ -2000,9 +2000,12 @@ public class ChartViewService { private List getDynamicAssistFields(ChartViewDTO view) { String senior = view.getSenior(); + List list = new ArrayList<>(); + if (StringUtils.isEmpty(senior)) { + return list; + } JSONObject jsonObject = JSONObject.parseObject(senior); JSONArray assistLine = jsonObject.getJSONArray("assistLine"); - List list = new ArrayList<>(); if (ObjectUtils.isEmpty(assistLine) || StringUtils.isBlank(assistLine.toJSONString())) { return list; }