Skip to content

Commit 0afe169

Browse files
authored
Merge pull request #108 from codingapi/dev
update version
2 parents 48fa061 + 2704357 commit 0afe169

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • flow-engine-framework/src/main/java/com/codingapi/flow/form

flow-engine-framework/src/main/java/com/codingapi/flow/form/FlowForm.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,12 @@ private void initFormFieldDataTypes(FlowForm form, Map<String, DataType> types)
155155
*/
156156
public Map<String, DataType> loadAllFieldDataTypeMaps() {
157157
Map<String, DataType> types = new HashMap<>();
158-
List<FlowForm> forms = new ArrayList<>(this.getSubForms());
158+
List<FlowForm> forms;
159+
if(this.subForms==null || this.subForms.isEmpty()){
160+
forms = new ArrayList<>();
161+
}else {
162+
forms = new ArrayList<>(this.getSubForms());
163+
}
159164
forms.add(this);
160165
for (FlowForm subForm : forms) {
161166
this.initFormFieldDataTypes(subForm, types);

0 commit comments

Comments
 (0)