You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
A crash in main.js on an idle TTL window:
Fri, 02 Oct 2020 13:12:37 GMT uncaughtException: Cannot read property 'webContents' of null TypeError: Cannot read property 'webContents' of null at Timeout.refreshOnDayChange [as _onTimeout] (C:\Users\araujo\Documents\workspace\time-to-leave\main.js:41:20) at listOnTimeout (internal/timers.js:531:17) at processTimers (internal/timers.js:475:7)
Apparently mainWindow can be null at this stage. Other usages of the variable in main.js always check if it's not null before using it, while this one doesn't. The fix should be to add an if guard.
Expected behavior
No crashes.
The text was updated successfully, but these errors were encountered:
Describe the issue
A crash in main.js on an idle TTL window:
Apparently mainWindow can be null at this stage. Other usages of the variable in main.js always check if it's not null before using it, while this one doesn't. The fix should be to add an if guard.
Expected behavior
No crashes.
The text was updated successfully, but these errors were encountered: