Showing
2 changed files
with
3 additions
and
3 deletions
... | ... | @@ -18,8 +18,8 @@ package org.thingsboard.rule.engine.api.util; |
18 | 18 | import com.fasterxml.jackson.core.JsonProcessingException; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import com.fasterxml.jackson.databind.ObjectMapper; |
21 | -import org.apache.commons.lang3.StringUtils; | |
22 | 21 | import org.springframework.util.CollectionUtils; |
22 | +import org.springframework.util.StringUtils; | |
23 | 23 | import org.thingsboard.rule.engine.api.TbNodeConfiguration; |
24 | 24 | import org.thingsboard.rule.engine.api.TbNodeException; |
25 | 25 | import org.thingsboard.server.common.msg.TbMsg; |
... | ... | @@ -71,7 +71,7 @@ public class TbNodeUtils { |
71 | 71 | String[] keys = group.split("\\."); |
72 | 72 | JsonNode jsonNode = json; |
73 | 73 | for (String key : keys) { |
74 | - if (StringUtils.isNotEmpty(key) && jsonNode != null) { | |
74 | + if (!StringUtils.isEmpty(key) && jsonNode != null) { | |
75 | 75 | jsonNode = jsonNode.get(key); |
76 | 76 | } else { |
77 | 77 | jsonNode = null; | ... | ... |