diff --git a/designer-chart/src/main/java/com/fr/van/chart/column/VanChartColumnPlotLabelDetailPane.java b/designer-chart/src/main/java/com/fr/van/chart/column/VanChartColumnPlotLabelDetailPane.java index 8de2097128..a2be5f2905 100644 --- a/designer-chart/src/main/java/com/fr/van/chart/column/VanChartColumnPlotLabelDetailPane.java +++ b/designer-chart/src/main/java/com/fr/van/chart/column/VanChartColumnPlotLabelDetailPane.java @@ -32,6 +32,10 @@ public class VanChartColumnPlotLabelDetailPane extends VanChartPlotLabelDetailPa UIButtonGroup content = dataLabelContentPane.getContent(); UIButtonGroup orientation = getOrientation(); + if (content == null || orientation == null) { + return; + } + if (content.getSelectedIndex() == VanChartTooltipContentPane.RICH_EDITOR_INDEX) { orientation.setSelectedIndex(HORIZONTAL_INDEX); orientation.setEnabled(false);