diff --git a/src/views/gcal-year-view.c b/src/views/gcal-year-view.c index d32bc0d8a9abdafc40ed55d0d97b682a1433f45a..5c6ec89c660bfebe56557ae332cea6f067d38701 100644 --- a/src/views/gcal-year-view.c +++ b/src/views/gcal-year-view.c @@ -2192,7 +2192,11 @@ update_weather (GcalYearView *self) if (!updated) { gtk_label_set_text (self->temp_label, ""); - gtk_image_clear (self->weather_icon); + /* FIXME: This should never be NULL, but it somehow is. + * https://gitlab.gnome.org/GNOME/gnome-calendar/issues/299 + */ + if (self->weather_icon != NULL) + gtk_image_clear (self->weather_icon); } }