Merge pull request #13499 from thingsboard/fix/edqs-state-owner

EDQS: fix null uuid customer id after sync
This commit is contained in:
Viacheslav Klimov 2025-06-02 18:01:35 +03:00 committed by GitHub
commit ddcf8b7e96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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