gozoinks / homebridge-camera-ffmpeg-ufv

UniFi Video plugin for Homebridge
https://www.npmjs.com/package/homebridge-camera-ffmpeg-ufv
Other
76 stars 20 forks source link

Account for empty channel array #32

Closed wsmckenz closed 5 years ago

wsmckenz commented 5 years ago

I have a case where I had a camera that is known to the NVR, but not managed. In this case, the channel array is null, and causes an error on discoveredChannels.length. Defaulting to an empty array solves this problem.

jmbwell commented 5 years ago

Outstanding. Great catch. Thank you!