boc-tothefuture / openhab-jruby

JRuby Libraries for Openhab
Eclipse Public License 2.0
6 stars 9 forks source link

fix: comparing non null vs null comparable-item objects raised an exception #593

Closed jimtng closed 2 years ago

jimtng commented 2 years ago

Related to #550

It seems that we need to extend the item equality comparison into <=> I came across an error when performing an item object comparison which involved <=> instead of ==. I think it applies to anything involving comparable types, such as string, number, etc. Our current tests only involved Switch items hence why we didn't catch it.

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 4.41.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: