Rules Compiles errors

Log errors while compile Home.Rules
does any one know why I got those?

2020-11-29 20:27:41.750 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘home.rules’

2020-11-29 20:27:42.059 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:

java.lang.NullPointerException: null

at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleContextHelper.getContext( ~[?:?]

at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl.lambda$2( ~[?:?]

at java.util.concurrent.Executors$ ~[?:?]

at ~[?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201( ~[?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ ~[?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]

at java.util.concurrent.ThreadPoolExecutor$ [?:?]

at [?:?]


Most likely there is a problem with the contents of the home.rules file.


Only the error doesn’t tell much.

It could be a timer that got the reference list, because you updated the rules file

1 Like

You will likely have not given an item as state and it is null

Please share the source code of home.rules