Merge pull request #13499 from thingsboard/fix/edqs-state-owner
EDQS: fix null uuid customer id after sync
This commit is contained in:
commit
ddcf8b7e96
@ -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