diff --git a/docking.js b/docking.js index 23ffd34a6..fc60768e2 100644 --- a/docking.js +++ b/docking.js @@ -2551,7 +2551,7 @@ export class DockManager { this._appSwitcherSettings = null; this._oldDash = null; - this._desktopIconsUsableArea.destroy(); + this._desktopIconsUsableArea?.destroy(); this._desktopIconsUsableArea = null; this._extension = null; DockManager._singleton = null; diff --git a/notificationsMonitor.js b/notificationsMonitor.js index c9060e128..c8b40880a 100644 --- a/notificationsMonitor.js +++ b/notificationsMonitor.js @@ -50,7 +50,7 @@ export class NotificationsMonitor { destroy() { this.emit('destroy'); - this._signalsHandler.destroy(); + this._signalsHandler?.destroy(); this._signalsHandler = null; this._appNotifications = null; this._settings = null;