diff --git a/src/main/java/neatlogic/module/framework/form/service/FormServiceImpl.java b/src/main/java/neatlogic/module/framework/form/service/FormServiceImpl.java index 63e44bb3d0991791fec70e39bfa42dcc5fb1a767..7454a1deaa0a6ce1a5961d7a78dd82a49800c615 100644 --- a/src/main/java/neatlogic/module/framework/form/service/FormServiceImpl.java +++ b/src/main/java/neatlogic/module/framework/form/service/FormServiceImpl.java @@ -858,10 +858,14 @@ public class FormServiceImpl implements FormService, IFormCrossoverService { if (Objects.equals("formtable", dataObj.getString("handler"))) { FormAttributeParentVo parent3 = new FormAttributeParentVo(dataObj.getString("uuid"), dataObj.getString("label"), parent2); JSONObject config2 = dataObj.getJSONObject("config"); - JSONArray dataConfigList2 = config2.getJSONArray("dataConfig"); - for (int j = 0; j < dataConfigList2.size(); j++) { - JSONObject dataObj2 = dataConfigList2.getJSONObject(j); - resultList.addAll(getFormAttributeList(dataObj2, parent3)); + if (MapUtils.isNotEmpty(config2)) { + JSONArray dataConfigList2 = config2.getJSONArray("dataConfig"); + if (CollectionUtils.isNotEmpty(dataConfigList2)) { + for (int j = 0; j < dataConfigList2.size(); j++) { + JSONObject dataObj2 = dataConfigList2.getJSONObject(j); + resultList.addAll(getFormAttributeList(dataObj2, parent3)); + } + } } } }