dateMenu: Fix possible crash with unknown locations

Desktop / GNOME / GNOME Shell - Bastien Nocera [hadess.net] - 6 December 2017 01:02 EST

If there are locations unknown to the libgweather version gnome-shell is using, don't crash.

JS ERROR: TypeError: b.location is null WorldClocksSection<._clocksChanged/<@resource:///org/gnome/shell/ui/dateMenu.js:141:1 WorldClocksSection<._clocksChanged@resource:///org/gnome/shell/ui/dateMenu.js:139:9

https://bugzilla.gnome.org/show_bug.cgi?id=791148

29987ae03 dateMenu: Fix possible crash with unknown locations
js/ui/dateMenu.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Upstream: git.gnome.org


  • Share