Open ShaAlexander opened 3 months ago
A new version of camera.ui is currently under active development. An initial alpha/beta release and previews are coming soon. Stay tuned for exciting updates: https://github.com/seydx/camera.ui/issues/448 .
This version will no longer be developed / fixed. The new version contains many novelties and fixes (most important is for HKSV recording).
Describe the bug
A crash and restart of the child bridge occur, followed by the error:
TypeError: Cannot read properties of null (reading 'get')
in thehomebridge-camera-ui
plugin.To Reproduce
Restart the system. The issue occurs without a clear trigger.
Expected behavior
The system should restart without crashing and should not encounter a null property error.
Logs
Environment
Additional context
The error seems to originate from accessing a null property in the
fetchSnapshot
method.Proposed Fix
The issue can be fixed by adding null checks before accessing properties. Here is the updated code for the
fetchSnapshot
method in/var/lib/homebridge/node_modules/homebridge-camera-ui/src/accessories/camera.js
: