Browse Source

REPORT-60082 修复一处可能npe的问题

research/11.0
方磊 3 years ago
parent
commit
54b42c5491
  1. 3
      designer-form/src/main/java/com/fr/design/designer/beans/models/NewFormModel.java

3
designer-form/src/main/java/com/fr/design/designer/beans/models/NewFormModel.java

@ -61,7 +61,8 @@ public class NewFormModel implements Serializable {
public void setConfig(Map<String, List<PredefinedLayout>> config) {
for (String key : config.keySet()) {
this.config.put(i18nMap.get(key), config.get(key));
String i18nKey = StringUtils.isNotEmpty(i18nMap.get(key)) ? i18nMap.get(key) : key;
this.config.put(i18nKey, config.get(key));
}
}
}

Loading…
Cancel
Save