-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[airq] StringIndexOutOfBoundsException on empty usercalib #13928
Labels
bug
An unexpected problem or unintended behavior of an add-on
Comments
MikeTheTux
added
the
bug
An unexpected problem or unintended behavior of an add-on
label
Dec 12, 2022
The same issue was already reported here: https://community.openhab.org/t/new-air-q-binding/115989/6 |
The following length-check in the java code of the binding fixes the issue:
I'm thinking of creating a PR with those changes. |
Rather |
In that case that would be the better choice, but there are other cases that need to check for a min lenght of 2:
|
Closed by merged PR #14000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The binding throws a
StringIndexOutOfBoundsException
. I guess it happens in case of empty"usercalib":{}
:Trace:
Your Environment
openHAB 3.4.0.M4
My air-Q is actually quiet new. I did not perform any calibration. It is used without beeing connected to the cloud.
The text was updated successfully, but these errors were encountered: