From 9424d8f3cc17a0f111c56d062ff3adb96c3cac96 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 27 Jan 2018 23:32:21 -0200 Subject: [PATCH] weather-settings: Only deserialize valid locations --- src/weather/gcal-weather-settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weather/gcal-weather-settings.c b/src/weather/gcal-weather-settings.c index 72f39fbe..747ed6e5 100644 --- a/src/weather/gcal-weather-settings.c +++ b/src/weather/gcal-weather-settings.c @@ -111,7 +111,7 @@ load_weather_settings (GcalWeatherSettings *self) GWeatherLocation *world; world = gweather_location_get_world (); - weather_location = gweather_location_deserialize (world, location); + weather_location = location ? gweather_location_deserialize (world, location) : NULL; gweather_location_entry_set_location (GWEATHER_LOCATION_ENTRY (self->weather_location_entry), weather_location); }