Hi guys,
I got a strange behaviour with a String-Item in a file-based rule, and its driving me nuts.
Every time I try to assign a value to this Item, I get a Error-message, which says, that the item is NULL, and I cannot assign a value to it.
Item Definition
String securityTriggerItem "State [%s]" {expire= "120m, command=NONE"}
Rule definition
…
sendCommand(securityTriggerItem, “trigger”)
…
The result is a NullPointerException.
When trying to create a new String-Object, the Error is the following:
…
securityTriggerItem = new String ()
…
results in:
…
An error occurred during the script execution: Cannot assign a value in null context.
…
There are no overlapping events, and it is also not during startup of OH, as suggested in other posts.
If anyone has an idea, I would be really grateful.
- Platform information: Openhab 3.3.0 (Dockerized)
- openHAB version: 3.3.0