Make ag_display_theme_to_css() handle the NULL theme

This commit is contained in:
Gergely Polonkai 2014-09-21 22:56:14 +02:00
parent c36ef58946
commit 4fd2215360
1 changed files with 5 additions and 0 deletions

View File

@ -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 {