KurtSanders / STAmbientWeather

Hubitat Integration for Ambient Weather Station
Apache License 2.0
40 stars 77 forks source link

java.lang.NullPointerException: Cannot invoke method sendEvent() on null object #7

Closed eugeniousone closed 5 years ago

eugeniousone commented 5 years ago

java.lang.NullPointerException: Cannot invoke method sendEvent() on null object @line 439 (ambientWeatherStation)

I get this when I am trying to add all of the initial information in the app. It says that it saved, then throws this exception.

KurtSanders commented 5 years ago

That program line, in the current version on github, has to do with "lastRain" which some Ambient weather stations do not support. I have program logic to ignore that line of code if the Ambient API does not return that field. So I am scratching my head.

I may need to get access to your Ambient API key to test and debug what is being returned from your weather station. Do you have a SmartThings Community Forum account where we can start a Private Message (PM). My username is kurtsanders and you can securely send your Ambient API so I can investigate.

KurtSanders commented 5 years ago

Dear eugeniousone,

I have a beta branch in this repo for you to test on SmartThings that attempts to eliminate this error you are receiving during install, but without your Ambient API key for temporary testing, I am unable to verify what is causing your unique issue.

If you would temporarily share your Ambient Weather API key via a secure PM on http://community.smartthings.com I can do more extensive testing with your configuration. If you do not wish to share, I can only try a few things. My username is the same here as it is on the http://community.smartthings.com website.

eugeniousone commented 5 years ago

Sure, I can pvt you my API key, no problem. Ju

KurtSanders commented 5 years ago

Still have not received your API via http://community.smartthings.com . Would you rather send via email?

eugeniousone commented 5 years ago

Sorry, yes please since I just cannot figure out how to post a pm through SmartThings.

Sincerely,

Eugene Brink

On Jan 25, 2019, at 4:04 AM, Kurt Sanders notifications@github.com wrote:

Still have not received your API via http://community.smartthings.com . Would you rather send via email?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

KurtSanders commented 5 years ago

API Key received.. investigating

KurtSanders commented 5 years ago

Confirmed working in V4.0.0 with users PI key. Issue Resolved.