-
-
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
[shelly] Fix NullPointerException
#18103
Conversation
Signed-off-by: Thomas Leber <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
I'm struggling to understand the complexities of this binding, and I tried to investigate it a bit further based on the stack trace provided in the linked issue. But the questions and further needed investigations quickly accumulated, so I fully agree keep this scope and do this limited fix for the special case device.
...ding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerPage.java
Outdated
Show resolved
Hide resolved
NullPointerException
I had the same issue and I actually thought this would be actually a valid case that this is null, but may @markus7017 knows better. |
Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: tl-photography <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Thomas Leber <[email protected]>
This PR intends to fix #18065.
The mode seems to be null under certain conditions. Since this bug is actually located in a special handling for one specific device this quick fix was taken.