Fix EntityFields.getCustomerId

This commit is contained in:
ViacheslavKlimov 2025-06-02 17:56:57 +03:00
parent 49fbed2b93
commit c1b5f0a902

View File

@ -63,7 +63,12 @@ public class AbstractEntityFields implements EntityFields {
} }
protected UUID checkId(UUID id) { protected UUID checkId(UUID id) {
return id != null && !id.equals(EntityId.NULL_UUID) ? id : null; return id == null || id.equals(EntityId.NULL_UUID) ? null : id;
}
@Override
public UUID getCustomerId() {
return checkId(customerId);
} }
} }