-
-
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
[tradfri] fix null pointer exception when sending command to a device that is offline #12347
Conversation
…at is offline Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
Please also consider potential NPE in method setStatus and in methods handleCommand in all handlers when handling REFRESH command. |
At best we should change the annotation of the property |
I fully agree. |
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
done |
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
… that is offline (openhab#12347) * [tradfri] fix null pointer exception when sending command to thing that is offline * [tradfri] changed coapClient from @NinNullByDefault({}) to @nullable Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> Signed-off-by: Nick Waterton <n.waterton@outlook.com>
… that is offline (openhab#12347) * [tradfri] fix null pointer exception when sending command to thing that is offline * [tradfri] changed coapClient from @NinNullByDefault({}) to @nullable Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
… that is offline (openhab#12347) * [tradfri] fix null pointer exception when sending command to thing that is offline * [tradfri] changed coapClient from @NinNullByDefault({}) to @nullable Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
… that is offline (openhab#12347) * [tradfri] fix null pointer exception when sending command to thing that is offline * [tradfri] changed coapClient from @NinNullByDefault({}) to @nullable Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This fixes the following error when a Tradfri device is offline:
It now logs: