diff --git a/js/misc/breakManager.js b/js/misc/breakManager.js index 42e7c3569..371201a7a 100644 --- a/js/misc/breakManager.js +++ b/js/misc/breakManager.js @@ -1278,8 +1278,11 @@ class BreakNotificationSource extends GObject.Object { this._scheduleUpdateState(updateTimeoutSeconds); } - this._notification.urgency = this._urgencyForBreakType(this._manager.currentBreakType); - this._source.addNotification(this._notification); + if (this._notification) { + this._notification.urgency = this._urgencyForBreakType(this._manager.currentBreakType); + this._source.addNotification(this._notification); + } + break; }