浏览代码

allow reference to be null

tags/2.0.1
Jonathan Cobb 4 年前
父节点
当前提交
4d81443257
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      wizard-common/src/main/java/org/cobbzilla/wizard/model/entityconfig/EntityFieldConfig.java

+ 1
- 1
wizard-common/src/main/java/org/cobbzilla/wizard/model/entityconfig/EntityFieldConfig.java 查看文件

@@ -142,7 +142,7 @@ public class EntityFieldConfig implements VerifyLogAware<EntityFieldConfig> {
*/
@Getter @Setter private EntityFieldReference reference = null;
@JsonIgnore public boolean isParentReference () {
return getType() == EntityFieldType.reference && getReference().getEntity().equals(EntityFieldReference.REF_PARENT);
return getType() == EntityFieldType.reference && getReference() != null && getReference().getEntity().equals(EntityFieldReference.REF_PARENT);
}

/**


正在加载...
取消
保存