Astro binding null

Just switched to OpenHAB 3. So far (besides openhabian-config trying to constantly re-install Java8) my only issue is with a chatty Astro error. Can anyone help here?

2020-12-25 10:30:45.745 [ERROR] [o.internal.handler.AstroThingHandler] - Can't update state for channel astro:sun:local:season#timeLeft : null
java.lang.reflect.InvocationTargetException: null
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.openhab.binding.astro.internal.util.PropertyUtils.getPropertyValue(PropertyUtils.java:93) ~[bundleFile:?]
        at org.openhab.binding.astro.internal.util.PropertyUtils.getPropertyValue(PropertyUtils.java:96) ~[bundleFile:?]
        at org.openhab.binding.astro.internal.util.PropertyUtils.getPropertyValue(PropertyUtils.java:82) ~[bundleFile:?]
        at org.openhab.binding.astro.internal.util.PropertyUtils.getState(PropertyUtils.java:55) ~[bundleFile:?]
        at org.openhab.binding.astro.internal.handler.AstroThingHandler.publishChannelIfLinked(AstroThingHandler.java:180) [bundleFile:?]
        at org.openhab.binding.astro.internal.handler.AstroThingHandler.publishPlanet(AstroThingHandler.java:161) [bundleFile:?]
        at org.openhab.binding.astro.internal.handler.SunHandler.publishPositionalInfo(SunHandler.java:73) [bundleFile:?]
        at org.openhab.binding.astro.internal.job.PositionalJob.run(PositionalJob.java:43) [bundleFile:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NullPointerException
        at org.openhab.binding.astro.internal.model.Season.getTimeLeft(Season.java:132) ~[?:?]

There was a bug here. This causes this error until the end of the year. It has been fixed but is not yet released. OH 2.5.8 Astro binding - Java Error Nullpointer exception · Issue #1220 · openhab/openhab-distro · GitHub

1 Like