-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Fix NPE in GroupStateTriggerHandler and GroupCommandTriggerHandler #3966
Conversation
Reported on the community forum. The handler checks if the item's group names contains the configured value. A `null` group name results in the NPW during that check. Signed-off-by: Jan N. Klug <github@klug.nrw>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-1-release-discussion/152252/76 |
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!
Maybe it is also easy to add unit tests for this?
What should be covered by that test? The "real" problem is that we don't validate the trigger configurations before we create the modules. |
Based on the changes the tests could check that a warning is logged whenever the |
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.
Thanks!
@J-N-K : is it something to backport in branch 4.1.x ? |
Reported on the community forum. The handler checks if the item's group names contains the configured value. A
null
group name results in the NPW during that check.