-
-
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
[OpenSprinkler] Avoid NPE in case missing config #1888
Conversation
Signed-off-by: Marcel Verpaalen <[email protected]>
@marcelrv, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kaikreuzer and @CrackerStealth to be potential reviewers. |
You mean you didn't change the class OpenSprinklerHTTPHandler at all? Then just revert the change on this file in your commit. |
I intended to change the class wrt to the logger.debug line only. I checked if it was the indenting, but also that does not appear to be changed |
It's probably a change in EOL characters from Windows to Unix or Unix to Windows that makes all the lines appear changed. |
The change you refer to is in the file OpenSprinklerPiHandler, not OpenSprinklerHTTPHandler. |
Yeah; the OpenSprinklerHTTPHandler.java file had Windows style line endings on it for some reason; so this change just converted it to Unix style. A quick compare of the OpenSprinklerHTTPHandler.java shows the same change to the logging line on both files. |
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.
Changes look fine to me to handle the case that config does not exist and DEBUG logging is enabled.
Ok, thanks @CrackerStealth & @marcelrv! |
Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Marcel Verpaalen <[email protected]>
* Added capability for custom deserializer Closes openhab#1888 Signed-off-by: clinique <[email protected]>
* new menu entry settings Signed-off-by: Stefan Höhn <[email protected]> * Apply suggestions from code review Signed-off-by: Jerome Luckenbach <[email protected]> * Apply suggestions from code review Signed-off-by: Jerome Luckenbach <[email protected]> * Markdown fixes from code review Signed-off-by: Jerome Luckenbach <[email protected]> * Markdown fixes from code review (Round 2) Signed-off-by: Jerome Luckenbach <[email protected]> Signed-off-by: Stefan Höhn <[email protected]> Signed-off-by: Jerome Luckenbach <[email protected]> Co-authored-by: Jerome Luckenbach <[email protected]>
Note. not clear why GH sees the whole class as changed.
Only change made was to move the log message (L42) after the following null check
Signed-off-by: Marcel Verpaalen [email protected]