diff --git a/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java b/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java index effb64cf38..f7c4946eb6 100644 --- a/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java +++ b/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java @@ -560,7 +560,7 @@ public class ReplaceUtils { } if (widget instanceof DataControl) { ValueInitializer value = ((DataControl) widget).getWidgetValue(); - if (value.getValue() instanceof DataBinding) { + if (value != null && value.getValue() instanceof DataBinding) { DataBinding binding = (DataBinding) value.getValue(); for (TableReplacementEntity entity : entities) { if (StringUtils.equals(entity.getOldName(), binding.getDataSourceName())) {