Fix EntityFields.getCustomerId
This commit is contained in:
parent
49fbed2b93
commit
c1b5f0a902
@ -63,7 +63,12 @@ public class AbstractEntityFields implements EntityFields {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user