fix_bug: commit

This commit is contained in:
nickAS21 2022-09-13 16:36:01 +03:00
parent f16779e8e3
commit 355d09569b

View File

@ -165,10 +165,7 @@ public class DefaultTbClusterService implements TbClusterService {
@Override
public void pushMsgToRuleEngine(TenantId tenantId, EntityId entityId, TbMsg tbMsg, TbQueueCallback callback) {
if (tenantId == null) {
log.warn("tenantId [null] [{}] Received invalid message: {}", entityId, tbMsg);
return;
} else if (tenantId.isNullUid()) {
if (tenantId == null || tenantId.isNullUid()) {
if (entityId.getEntityType().equals(EntityType.TENANT)) {
tenantId = TenantId.fromUUID(entityId.getId());
} else {