Hue Binding v2.5.6-SNAPSHOT // NullPointerException Errors on startup

I updated to v2.5.6-SNAPSHOT yesterday and I am seeing a lot of NullPointerException Errors when I start up the system. I think there is one such exception for each Hue Thing in my system, but I am showing just one of them below. => Any thoughts about a solution?

2020-06-03 13:47:33.059 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'hue:0100:g24:b16': null
java.lang.NullPointerException: null
	at org.openhab.binding.hue.internal.handler.HueLightHandler.onLightAdded(HueLightHandler.java:545) ~[?:?]
	at org.openhab.binding.hue.internal.handler.HueBridgeHandler.registerLightStatusListener(HueBridgeHandler.java:811) ~[?:?]
	at org.openhab.binding.hue.internal.handler.HueLightHandler.getHueClient(HueLightHandler.java:433) ~[?:?]
	at org.openhab.binding.hue.internal.handler.HueLightHandler.initializeThing(HueLightHandler.java:147) ~[?:?]
	at org.openhab.binding.hue.internal.handler.HueLightHandler.initialize(HueLightHandler.java:127) ~[?:?]
	at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]

Snapshots are unstable. Issues should be reported on Github where they can be fixed.
Snapshots are not designed for daily use. They are for testing purposes only.

The only exception I know of are zwave binding where the snapshot usually just have an updated device database. Not much active development there otherwise, right now.

Yes @Bruce_Osborne I am not an idiot. I am testing. And I have found errors. And I am reporting them here.

Which is the wrong place. Many developers are not here. That is my point.

Please open an issue in Github.
There was a recent refactoring in the hue binding not by myself.

2 Likes

It is fixed.

1 Like

Many thanks. The snapshot distribution is erroring (on openhabian) right now, but I will test it as soon as I do get the new snapshot installed.

Just to confirm: it is indeed fixed. Many thanks for your help.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.