From fa82af251f31d14502fe7a3096c03af707b3bc20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 15 Feb 2017 11:47:45 +0100 Subject: [PATCH] location: Initialize permissions The permissions hash is initialized after consulting the permission store, however the lookup is skipped for requests that cannot be resolved to an application, resulting in an error when accessing the uninitialized hash for saving. Just make sure that the property is always initialized to avoid that error. https://bugzilla.gnome.org/show_bug.cgi?id=778661 --- js/ui/status/location.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/status/location.js b/js/ui/status/location.js index b1e97c74c..668f93c2d 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -284,6 +284,7 @@ const AppAuthorizer = new Lang.Class({ this.reqAccuracyLevel = reqAccuracyLevel; this._permStoreProxy = permStoreProxy; this._maxAccuracyLevel = maxAccuracyLevel; + this._permissions = {}; this._accuracyLevel = GeoclueAccuracyLevel.NONE; },