Device state update being called with a null state
Open
- Dominant language
- JavaScript
- Stars
- 400
- Forks
- 89
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 149
Description
Sentry Issue: [FLOWFUSE-BACKEND-1P](https://flowfuse.sentry.io/issues/4599076317/?referrer=github_integration)
```
TypeError: Cannot read properties of null (reading 'state')
File "/usr/src/forge/app/node_modules/@flowforge/flowforge/forge/db/controllers/Device.js", line 5, in Object.updateState
if (state.state) {
File "/usr/src/forge/app/node_modules/@flowforge/flowforge/forge/comms/devices.js", line 75, in DeviceCommsHandler.handleStatus
await this.app.db.controllers.Device.updateState(device, payload)
File "", in runMicrotasks
File "node:internal/process/task_queues", line 96, in processTicksAndRejections
```
Contributor guide
Assessment
This issue has not been assessed yet.