OpenZWave / open-zwave-control-panel

UNMAINTAINED - We are looking for someone to maintain ozwcp! The OpenZWave Control Panel (ozwcp for short) is an application built on the OpenZWave library that permits users to query, manage and monitor Z-Wave nodes and networks. It provides a web based user interface using AJAX principles.
Other
130 stars 72 forks source link

Handle undefined items.firstChild #76

Closed matejdro closed 4 years ago

matejdro commented 4 years ago

For me, OZW CP was not showing any devices and console was showing errors about firstChild being undefined.

I'm not sure what exactly causes this, but since this is unmantained anyway, this his a quick hotfix that fixes device display.

petergebruers commented 4 years ago

Thank you fo reporting this. I try to keep this project alive. I'll see if I can find the cause of this, possibly handle this situation so we get some feedback when it happens. I'll push to your branch if I find something.

petergebruers commented 4 years ago

Can't find the root cause, seems like all "normal" paths should lead to a value array of valid list items. Added an "else" part, if we ever see that "---" we might reexamine this.