Avoid critical on startup when a calendar is broken

This is a workaround for evolution-data-server#205. Depending on the
resolution of that bug, this might even be the correct fix.
This commit is contained in:
Michael Catanzaro
2020-04-02 15:59:32 -05:00
parent 26897f89a2
commit 2bf6cfe289
+1 -1
View File
@@ -94,7 +94,7 @@ update_color (GcalCalendar *self)
selectable_extension = e_source_get_extension (priv->source, E_SOURCE_EXTENSION_CALENDAR);
color = e_source_selectable_get_color (selectable_extension);
if (!gdk_rgba_parse (&priv->color, color))
if (!color || !gdk_rgba_parse (&priv->color, color))
gdk_rgba_parse (&priv->color, "#ffffff");
}