[gnome-maps] placeEntry: Fix locEquals



commit af42ca6dae6af1ea67193f227fb34858e117c924
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Sun Aug 16 21:46:33 2015 +0200

    placeEntry: Fix locEquals

 src/placeEntry.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/placeEntry.js b/src/placeEntry.js
index 0f82142..50f8f90 100644
--- a/src/placeEntry.js
+++ b/src/placeEntry.js
@@ -134,6 +134,9 @@ const PlaceEntry = new Lang.Class({
     },
 
     _locEquals: function(placeA, placeB) {
+        if (!placeA.location || !placeB.location)
+            return false;
+
         return (placeA.location.latitude === placeB.location.latitude &&
                 placeA.location.longitude === placeB.location.longitude);
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]