Преглед на файлове

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);
}

/**


Зареждане…
Отказ
Запис