-
-
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
[Freeboxos] Fix NullPointerException
when updating inactive Player
#15813
Conversation
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[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
uptime = 0; | ||
} | ||
} else { | ||
updateStatus(ThingStatus.OFFLINE); |
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.
It seems to be already done at line 74
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.
Yes, you're correct
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[email protected]>
@@ -31,7 +31,6 @@ | |||
import org.openhab.core.thing.Thing; | |||
import org.openhab.core.thing.ThingStatus; | |||
import org.openhab.core.thing.binding.ThingHandlerService; | |||
import org.slf4j.Logger; |
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.
Import to be restored
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.
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, thank you
NullPointerException
when updating inactive Player
* Correcting npe * Added status update --------- Signed-off-by: clinique <[email protected]>
* Correcting npe * Added status update --------- Signed-off-by: clinique <[email protected]> Signed-off-by: Jørgen Austvik <[email protected]>
It can happen (when using webhooks) that a poll is sent when the player is not reachable.
This leads to an npe :