diff --git a/js/ui/status/location.js b/js/ui/status/location.js index a2481f4c3..45f6b7ac8 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -160,7 +160,7 @@ var GeoclueAgent = GObject.registerClass({ } _onGeoclueVanished() { - this._managerProxy.disconnectObject(this); + this._managerProxy?.disconnectObject(this); this._managerProxy = null; this.notify('in-use');