Skip to content

Commit 9229b08

Browse files
authored
[app-builder] 兼容旧数据,规避应用导出时config property找不到对应form property时报错 (#168)
1 parent e6e4ac0 commit 9229b08

File tree

1 file changed

+3
-0
lines changed
  • app-builder/jane/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/util

1 file changed

+3
-0
lines changed

app-builder/jane/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/util/AppImExportUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ public static AppExportConfigProperty convertToAppExportConfigProperty(AppBuilde
162162
* @return 表示应用导出配置表单属性的 {@link AppExportFormProperty}。
163163
*/
164164
public static AppExportFormProperty convertToAppExportFormProperty(AppBuilderFormProperty appBuilderFormProperty) {
165+
if (appBuilderFormProperty == null) {
166+
return null;
167+
}
165168
return AppExportFormProperty.builder()
166169
.name(appBuilderFormProperty.getName())
167170
.dataType(appBuilderFormProperty.getDataType())

0 commit comments

Comments
 (0)