Skip to content
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

[netatmo] IndexOutOfBoundsException during camera thing initialization #17446

Closed
lolodomo opened this issue Sep 19, 2024 · 1 comment · Fixed by #17448
Closed

[netatmo] IndexOutOfBoundsException during camera thing initialization #17446

lolodomo opened this issue Sep 19, 2024 · 1 comment · Fixed by #17448
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@lolodomo
Copy link
Contributor


00:07:19.253 [WARN ] [ommon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0
        at jdk.internal.util.Preconditions.outOfBounds(Unknown Source) ~[?:?]
        at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) ~[?:?]
        at jdk.internal.util.Preconditions.checkIndex(Unknown Source) ~[?:?]
        at java.util.Objects.checkIndex(Unknown Source) ~[?:?]
        at java.util.ArrayList.get(Unknown Source) ~[?:?]
        at org.openhab.binding.netatmo.internal.api.SecurityApi.getHomeEvents(SecurityApi.java:89) ~[?:?]
        at org.openhab.binding.netatmo.internal.handler.capability.SecurityCapability.updateReadings(SecurityCapability.java:124) ~[?:?]
        at org.openhab.binding.netatmo.internal.handler.capability.SecurityCapability.updateReadings(SecurityCapability.java:1) ~[?:?]
        at org.openhab.binding.netatmo.internal.handler.capability.RestCapability.lambda$1(RestCapability.java:59) ~[?:?]
        at java.util.Optional.ifPresent(Unknown Source) ~[?:?]
        at org.openhab.binding.netatmo.internal.handler.capability.RestCapability.updateReadings(RestCapability.java:59) ~[?:?]
        at org.openhab.binding.netatmo.internal.handler.CommonInterface.lambda$16(CommonInterface.java:219) ~[?:?]
        at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(Unknown Source) ~[?:?]
        at org.openhab.binding.netatmo.internal.handler.CommonInterface.updateReadings(CommonInterface.java:219) ~[?:?]
        at org.openhab.binding.netatmo.internal.handler.CommonInterface.proceedWithUpdate(CommonInterface.java:214) ~[?:?]
        at org.openhab.binding.netatmo.internal.handler.capability.RefreshCapability.proceedWithUpdate(RefreshCapability.java:87) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]
        at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
        at java.lang.Thread.run(Unknown Source) [?:?]

I am runnign 4.3 Milestone 1.

@clinique for information

@lolodomo lolodomo added the bug An unexpected problem or unintended behavior of an add-on label Sep 19, 2024
@lolodomo
Copy link
Contributor Author

Just restarting the binding does not help.

Rebooting the camera and then restarting the binding solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants