-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
DecimalType throwing error in constructor for value 0E+1 #2874
Comments
IIRC the |
Does this mean that DivideTransformationProfile is at the end the culprit ? |
The question is where such a value comes from if it is considered illegal in openHAB. |
A workaround has been added in the solution used and we can't fix the UoM library. It is inconsistent to support it for DecimalType but not for QuantityType. |
Under certain circumstancies I get this exception at startup :
Here's the error log :
I think it maybe by channel being UNDEF or NULL but not sure.
At first approach, I thought it would be generated by DivideTransformationProfile (issue created here) but after looking at it @J-N-K arrived to the conclusion it was located in DecimalType.
This is a bug in the DecimalType parsing code in openhab-core. new BigDecimal("0E+1") returns a valid value, however the parsing code throws an exception because the parsing stops after the 0. The returned value is nevertheless valid.
The text was updated successfully, but these errors were encountered: