Browse Source
Merge pull request #13499 from thingsboard/fix/edqs-state-owner
EDQS: fix null uuid customer id after sync
pull/13504/head
Viacheslav Klimov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
1 deletions
-
common/data/src/main/java/org/thingsboard/server/common/data/edqs/fields/AbstractEntityFields.java
|
|
@ -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); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|