Basic rules sunrise issue

I'm using 2.2.6.137 and just tried creating a basic rule using sunrise and sunset time offset restrictions. When I save the rule I get this error in my logs:

2021-04-08 11:22:14.167 am error org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: basicRule10.beforeSunriseHandlerend() is applicable for argument types: () values: []
Possible solutions: beforeSunriseHandler(), beforeSunriseHandler(java.lang.Object), beforeSunriseHandlerX(java.lang.Object), beforeSunriseHandler(java.lang.Object, java.lang.Object), beforeSunriseHandlerX(java.lang.Object, java.lang.Object) (updated)

Thanks, I will look into this.

2 Likes

This should be fixed in the latest hot fix release.

2 Likes

Thanks, I installed the update and I'm getting a new error message when saving the rule now:

java.lang.NullPointerException: Cannot invoke method toInteger() on null object on line 1374 (updated)

The error doesn't show up for all settings, but when I use starting at sunset (offset=30) and ending at sunrise (offset=-30) I do see it.

Aargh! I see the problem...