Sorry if I'm missing something obvious here, but I searched all over and can't find a solution.
I have a small app in rule machine that is throwing an error when setting the value of a global Boolean variable. Seems straightforward, but I can't figure it out.
Here's the error log: app:1802022-12-30 05:56:29.287 PMerrorjava.lang.NullPointerException: Cannot invoke method toLong() on null object on line 5207 (method appButtonHandler)
The first two lines appear to be executing. The error code is then thrown and according to the logs, the third line with the variable assignment isn't executing. I must be missing something basic. I use Booleans in several apps. This is the only one giving me trouble.
Thanks for the fast response, everyone. Platform version is: 2.3.4.123. I don't think I was having this problem before I upgraded to it. I will recreate the rules ASAP and give that a try.
OK, FWIW, I deleted the action and recreated it. That did it. I should have tried that earlier, except it seemed like the next action was the problem. It's working now. Sounds like there might be a bug here, but I'll leave that to the better informed on this thread. Happy to provide more information if that will help.
My bad. All you had to do was edit the action, and hit Done Editing Action. There was a subtle change that was not backwards compatible, and your rule stepped on it. I never figured out exactly how to communicate this need in the release notes, and actually forgot about it,. The actions for setting Thermostat Scheduler had a lot of surgery performed to improve them.