diff --git a/designer-realize/src/main/java/com/fr/design/actions/replace/action/content/js/SearchChartJSAction.java b/designer-realize/src/main/java/com/fr/design/actions/replace/action/content/js/SearchChartJSAction.java index dc3092c01a..1d04ac2ccf 100644 --- a/designer-realize/src/main/java/com/fr/design/actions/replace/action/content/js/SearchChartJSAction.java +++ b/designer-realize/src/main/java/com/fr/design/actions/replace/action/content/js/SearchChartJSAction.java @@ -63,12 +63,15 @@ public class SearchChartJSAction { //图表-特效-交互属性-监控刷新 dealMonitorRefreshJS(conditionContent, chartCollection, jsInfos); for (int i = 0; i < chartCollection.getChartCount(); i++) { - ITContent chartContent = ITContent.copy(content); - chartContent.addOtherPos(chartCollection.getChart(i).getChartName()); - //坐标轴 - searchAxisJS(jsInfos, chartContent, chartCollection.getChart(i)); - //组合图表-条件属性-超链特判 - dealCustomPlot(jsInfos, conditionContent, chartCollection.getChart(i)); + Chart chart = chartCollection.getChart(i); + if (chart != null) { + ITContent chartContent = ITContent.copy(content); + chartContent.addOtherPos(chart.getChartName()); + //坐标轴 + searchAxisJS(jsInfos, chartContent, chart); + //组合图表-条件属性-超链特判 + dealCustomPlot(jsInfos, conditionContent, chart); + } } }