Browse Source

minor fix

pull/5915/head
YevhenBondarenko 5 years ago
parent
commit
f6cb46b069
  1. 2
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/profile/AlarmRuleState.java

2
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/profile/AlarmRuleState.java

@ -263,7 +263,7 @@ class AlarmRuleState {
}
var longValue = getLongValue(keyValue);
if (longValue != null) {
if (longValue == null) {
String sourceAttribute = dynamicValue.getSourceAttribute();
throw new NumericParseException(String.format("could not parse attribute [%s: %s] from source!", sourceAttribute, getStrValue(keyValue)));
}

Loading…
Cancel
Save