Getting NPEs on sunrise / sunset handlers

I've been getting these errors since adding more devices to be handled on sunrise / sunset (with offset) simple automations:

[app:303](http://192.168.1.29/logs#pastapp303)2021-04-26 06:11:00.210 [error](http://192.168.1.29/installedapp/configure/303)java.lang.NullPointerException: Cannot invoke method multiply() on null object on line 785 (afterSunriseHandler)

[app:179](http://192.168.1.29/logs#pastapp179)2021-04-26 06:11:00.206 [error](http://192.168.1.29/installedapp/configure/179)java.lang.NullPointerException: Cannot invoke method multiply() on null object on line 785 (afterSunriseHandler)

Here's one of the rules

Please post the Settings portion of the App Status page (gear icon).

Please use screenshots, not copy/paste, to post this sort of thing and logs here.

Here's one:

and another

The 2nd has been running fine for over a month until this weekend when I added the dimmer switch used in the first.

That's odd. Both of those show sunset offsets, but the one you posted above is a sunrise offset. I need to see the one you posted above, app 303.

App 303 is the one with the driveway lights. This one is APP 179:

The one with the driveway lights has offsets for both sunset and sunrise. It's to turn on the outside lights on my driveway between sunset - 30 mins and sunrise + 30 mins.

OK. Restart. I'm confused. I ONLY want to see app 303, the one that threw the error you posted above.

Actually, you're showing multiple unrelated things. So please start over. Show the app, and the error that goes with that app, and the Settings for that app.

That's this one

But 2 apps threw the same exception at the same time, 179 and 303, because they're both triggered at 30 minutes before sunrise. I also got the same error yesterday evening 30 minutes before sunset when APP 303 fired to turn on the lights. I was a couple point releases back on HE so I upgraded to see if it would fix, but got the same issue this morning.

Show the app page for this one.

This is APP 303

OK, I need to see the Event Subscriptions portion of the App Status page for this one.

Where do I get to that?

On the App Status page, below Settings. The gear icon on the app page.

Never mind. I found the bug. This will be fixed in the next release.

2 Likes

Great, thanks!

@bravenel I got these NPE's on 2.2.7.119 this morning. I've upgraded to 2.2.7.121 now but thought you should know.

Same as in original post above? Line 785?

788 now

Once again, I need to see the Settings section of the App Status page. I thought this was fixed.

Is this what you mean?