TypeError: Cannot destructure property 'task' of 'c' as it is null after hibernation
See original GitHub issueSteps to Reproduce
- Start tracing time with a task
- Hibernate PC
- Soon after resuming error appears
Seems to be rather reproducible - seen I has seen it two times yet.
Error Log (Desktop only)

Console Output
Stacktrace
TypeError: Cannot destructure property 'task' of 'c' as it is null.
at b._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:2107790)
at b.__tryOrUnsub (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956876)
at b.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956105)
at T._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955288)
at T.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955062)
at v._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:975388)
at v.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955062)
at O.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:952809)
at b._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:1716081)
at b.__tryOrUnsub (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956876)
Meta Info
META: SP7.8.0 Electron – pl – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/7.8.0 Chrome/93.0.4577.82 Electron/14.1.1 Safari/537.36
Actions Before Error
1638119757085: [Tag] Update Work End for Tag (3)
1638119757092: [Persistence] Save to DB (5)
1638119817070: [Task] Add time spent
1638119817072: [Project] Update Work End
1638119817127: [Tag] Update Work End for Tag (3)
1638119817141: [Persistence] Save to DB (5)
1638119877124: [Task] Add time spent
1638119877129: [Project] Update Work End
1638119877162: [Tag] Update Work End for Tag (3)
1638119877169: [Persistence] Save to DB (5)
1638119937060: [Task] Add time spent
1638119937061: [Project] Update Work End
1638119937078: [Tag] Update Work End for Tag (3)
1638119937086: [Persistence] Save to DB (5)
1638119997072: [Task] Add time spent
1638119997073: [Project] Update Work End
1638119997096: [Tag] Update Work End for Tag (3)
1638119997113: [Persistence] Save to DB (5)
1638120894657: [Pomodoro] Finish Pomodoro Session
1638120894887: [Task] UnsetCurrentTask
1638120895457: [Idle] Trigger Idle
1638120895496: [Idle] Set idle time
1638120895607: [Idle] Trigger Idle
1638120897556: [Idle] Set idle time (2)
1638120898445: [Pomodoro] Skip Break
1638120898450: [Task] Toggle start
1638120898452: [Persistence] Save to DB
1638120898452: [Task] SetCurrentTask
1638120898454: [Pomodoro] Start Pomodoro
1638120898667: [Idle] Set idle time
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
TypeError: Cannot destructure property 'task' of 'c' as it is null ...
Steps to Reproduce I only noticed the error when returning to the app, so I'm not sure about the steps to reproduce.
Read more >TypeError: Cannot destructure property 'tasks' of 'Object ...
js I want to build a home page which loads components based on the content in the local storage, but I keep getting...
Read more >Cannot destructure Property of Null Error in JavaScript
The "Cannot destructure property of null" error occurs when we try to destructure a property from a value that is equal to `null`....
Read more >Internal Server Error & TypeError: Cannot destructure property ...
The error means that request.bodyParser is undefined, which makes sense, since there's no such property on request object. Most likely it'd be body...
Read more >Cannot destructure property 'styles' of 'this.context' as it is null
The error happens if you are using the Head component from next/document instead of next/head . The Head component from next/document should ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I have been testing since your comment, recorded about 6 pomodoros and had the app opened in the background a lot longer - I haven’t spotted this nor #1745 error anymore(ocasionally I was looking in the console few times, but haven’t seen anything). Works much better now, thanks!
I haven’t yet built a master release(but I will do it now), so this issue also appeared on another pc, and no hibernation were involved. This time error happened after ending a pomodoro break:
Stacktrace
Meta Info
META: SP7.8.0 Electron – pl – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/7.8.0 Chrome/93.0.4577.82 Electron/14.1.1 Safari/537.36
Actions Before Error
but if I remember correctly, this cannot be run without pushing it to the store. You can install it locally, but you neeed to sign it with a locally trusted key. Well designed by MS, but greatly annoying for developers.