-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of null (reading 'get') #622
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have this issue. how can I fix this? without reinstalling it from scratch! |
same here, any fix? |
Hi |
#896 (comment) seems like a reasonable patch, have you tried it? |
yes I tried and it seems to work, so far so good |
Describe the bug
When re-starting homebridge, occasionally the following fatal error appears, making automatic homebridge-camera-ui auto-respawn harder to automate:
To Reproduce
Install LineageOS on a Nexus 4, install termux, nodejs, and npm install homebridge-camera-ui. Add three cameras and perhaps the error above manifests.
Expected behavior
I would expect that homebridge-camera-ui has a consistent state on each (re)start/stop of the service. Or at least that queues are either flushed/discarded upon start to or that
.get
(s) know how to deal with null or corrupted objects in the queue(s) without shutting down homebridge.At first I thought that just removing the empty
cachedAccessories
solved the problem:But the problem seems to be elsewhere, perhaps some corrupted database entry or queue object?
Environment
Linux localhost 3.4.113-lineageos-ge3e5c40db2e SMP PREEMPT Fri Jun 17 03:59:18 MSK 2022 armv7l Android
The text was updated successfully, but these errors were encountered: