DaveGut / HubitatActive

Hubitat Environment Developments
64 stars 87 forks source link

Getting "Cannot get property 'value' on null object when loading app after update? #16

Closed gleep52 closed 2 years ago

gleep52 commented 2 years ago

I have 16 kasa switch plugs working for over a year now. I bought an EM-plug and while they look identical, didn't realize it needed different drivers. I added the emplug.groovy driver and when I go into the kasa integration user app to update my list and find my new EM plug, I get a crashed page instead of the kasa interface.

Unexpected Error
An unexpected error has occurred trying to load the app. Check Logs for more information.
Error: Cannot get property 'value' on null object

The log shows this is happening:

app:9092021-12-01 08:21:45.107 am errorjava.lang.NullPointerException: Cannot get property 'value' on null object on line 629 (method startPage)
app:9092021-12-01 08:21:45.087 am info[KasaInt/6.4.3-r2] starting Kasa Integration
app:9092021-12-01 08:21:12.812 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Garage Camera Outlet 2 (192.168.1.185) added to devices array.
app:9092021-12-01 08:21:10.155 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Shed Camera Outlet (192.168.1.167) added to devices array.
app:9092021-12-01 08:21:09.945 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Treadmill Apple TV Outlet (192.168.1.171) added to devices array.
app:9092021-12-01 08:21:09.520 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Living Room Apple TV Outlet (192.168.1.169) added to devices array.
app:9092021-12-01 08:21:09.335 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Trampoline Camera Outlet (192.168.1.168) added to devices array.
app:9092021-12-01 08:21:08.856 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Deck Camera Outlet (192.168.1.165) added to devices array.
app:9092021-12-01 08:21:08.311 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Ravine Samsung camera (192.168.1.163) added to devices array.
app:9092021-12-01 08:21:07.393 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Server Monitor (192.168.1.153) added to devices array.
app:9092021-12-01 08:21:04.726 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa EM Plug HP Monitor (192.168.1.145) added to devices array.
app:9092021-12-01 08:21:03.981 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Pool Side camera (192.168.1.141) added to devices array.
app:9092021-12-01 08:21:03.709 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Front Yard camera (192.168.1.140) added to devices array.
app:9092021-12-01 08:21:03.296 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Living Room camera (192.168.1.138) added to devices array.
app:9092021-12-01 08:21:01.675 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Theatre Apple TV Outlet (192.168.1.130) added to devices array.
app:9092021-12-01 08:21:00.940 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Computer Monitors (192.168.1.126) added to devices array.
app:9092021-12-01 08:21:00.245 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Garage Lights (192.168.1.123) added to devices array.
app:9092021-12-01 08:20:57.634 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Microwave (192.168.1.110) added to devices array.
app:9092021-12-01 08:20:57.465 am info[KasaInt/6.4.3-r2] parseDeviceData: Kasa Plug Switch Puter Room Camera Outlet (192.168.1.109) added to devices array.

I tried deleting the user app and re-adding it - and it allows me to see the interface until I add my devices and click next, then it crashes to the same error page again.

DaveGut commented 2 years ago

This is fixed in the r4 release. Either re-install OR use HPM repair to correct. Please let me know if this works so I can close this comment. Dave

gleep52 commented 2 years ago

Perfect! HPM repair did the trick!

DaveGut commented 2 years ago

Thanks. Closing. Dave