[gnome-maps] MapBubble: Guard against geoclue place being null
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] MapBubble: Guard against geoclue place being null
- Date: Wed, 26 Nov 2014 08:21:39 +0000 (UTC)
commit da9f67337cfdefb9439abf45aafdcfe9fdec78fe
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Tue Nov 25 19:04:00 2014 +0100
MapBubble: Guard against geoclue place being null
src/mapBubble.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mapBubble.js b/src/mapBubble.js
index e8d2f0a..20b8183 100644
--- a/src/mapBubble.js
+++ b/src/mapBubble.js
@@ -143,7 +143,8 @@ const MapBubble = new Lang.Class({
if (routeFrom) {
from.place = this._place;
} else {
- from.place = Application.geoclue.place;
+ if (Application.geoclue.place)
+ from.place = Application.geoclue.place;
to.place = this._place;
}
this.destroy();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]