diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 1d48fa8bd..5908c904f 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -132,6 +132,8 @@ var WorldClocksSection = new Lang.Class({ let world = GWeather.Location.get_world(); let clocks = settings.get_value('world-clocks').deep_unpack(); for (let i = 0; i < clocks.length; i++) { + if (!clocks[i].location) + continue; let l = world.deserialize(clocks[i].location); this._locations.push({ location: l }); }