From 4fd2215360b8abaa1a3d2333e3c0210ae9c18ba6 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 21 Sep 2014 22:56:14 +0200 Subject: [PATCH] Make ag_display_theme_to_css() handle the NULL theme --- src/ag-display-theme.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ag-display-theme.c b/src/ag-display-theme.c index 94f2f36..1c1935f 100644 --- a/src/ag-display-theme.c +++ b/src/ag-display-theme.c @@ -54,6 +54,11 @@ ag_display_theme_to_css(AgDisplayTheme *theme) gchar *ret; GString *css = NULL; + // Null themes are possible, deal with it! + if (theme == NULL) { + return g_strdup(""); + } + if (theme->planets_include) { css = g_string_new(planet_none); } else {