[gnome-maps] geoclue: Add a null check
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] geoclue: Add a null check
- Date: Sun, 25 May 2014 10:57:34 +0000 (UTC)
commit b00366ff70efddb19ab0793906204b21955bdba0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun May 25 11:54:41 2014 +0100
geoclue: Add a null check
src/geoclue.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/geoclue.js b/src/geoclue.js
index 87692c4..3937072 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -185,7 +185,8 @@ const Geoclue = new Lang.Class({
Application.settings.set('last-location', [location.latitude,
location.longitude,
location.accuracy]);
- Application.settings.set('last-location-description', location.description);
+ if (location.description !== null)
+ Application.settings.set('last-location-description', location.description);
Application.settings.set('last-location-user-set', userSet);
this.userSetLocation = userSet;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]