Browse Source

fix_bug: pushEntityActionToRuleEngine endpoint if tenantId == null

pull/7266/head
nickAS21 4 years ago
parent
commit
b436a05c33
  1. 2
      application/src/main/java/org/thingsboard/server/service/action/EntityActionService.java

2
application/src/main/java/org/thingsboard/server/service/action/EntityActionService.java

@ -198,7 +198,7 @@ public class EntityActionService {
} }
} }
TbMsg tbMsg = TbMsg.newMsg(msgType, entityId, customerId, metaData, TbMsgDataType.JSON, json.writeValueAsString(entityNode)); TbMsg tbMsg = TbMsg.newMsg(msgType, entityId, customerId, metaData, TbMsgDataType.JSON, json.writeValueAsString(entityNode));
if (tenantId.isNullUid()) { if (tenantId == null || tenantId.isNullUid()) {
if (entity instanceof HasTenantId) { if (entity instanceof HasTenantId) {
tenantId = ((HasTenantId) entity).getTenantId(); tenantId = ((HasTenantId) entity).getTenantId();
} }

Loading…
Cancel
Save