openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

[Garadget] NullPointerException when calling getDevices #5924

Closed 9037568 closed 4 years ago

9037568 commented 4 years ago

In the community thread "Garadget binding error", the binding throws a null pointer exception when calling the getDevices() method.

Investigation eventually revealed that this occurs because the binding starts its polling loop even when its login has failed.

Expected Behavior

Binding should not start the polling loop if login is not successful.

Current Behavior

Binding starts the polling loop without regard to the status of the login.

Possible Solution

PR forthcoming