-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Must check for state UndefType before trying to convert to other type #71
Comments
should be fixed in #77 . The error triggered me there as well. |
After merge of PR 66 I see this with various types:
I'll see if I can find more stacktraces |
I have a precondition rule with a number item being check to trigger this: @JRuleWhenItemReceivedUpdate(item = MyScene.ITEM, condition = @JRuleCondition(gt = 20)) |
And looks better when I merge pr77 with main. Still testing it. |
Have not seen this issue on my side after merging and running locally since the weekend |
Solved by #77 |
java.lang.NumberFormatException: Invalid BigDecimal value: UNDEF
at org.openhab.core.library.types.QuantityType.(QuantityType.java:130) ~[?:?]
at org.openhab.core.library.types.QuantityType.(QuantityType.java:106) ~[?:?]
at org.openhab.core.library.types.QuantityType.valueOf(QuantityType.java:206) ~[?:?]
at org.openhab.automation.jrule.internal.engine.excutioncontext.JRuleItemExecutionContext.lambda$4(JRuleItemExecutionContext.java:67) ~[?:?]
at java.util.Optional.filter(Optional.java:223) ~[?:?]
at org.openhab.automation.jrule.internal.engine.excutioncontext.JRuleItemExecutionContext.matchCondition(JRuleItemExecutionContext.java:67) ~[?:?]
at org.openhab.automation.jrule.internal.engine.excutioncontext.JRuleItemChangeExecutionContext.match(JRuleItemChangeExecutionContext.java:51) ~[?:?]
at org.openhab.automation.jrule.internal.engine.JRuleEngine.lambda$46(JRuleEngine.java:267) ~[?:?]
The text was updated successfully, but these errors were encountered: