Make ag_display_theme_to_css() handle the NULL theme
This commit is contained in:
		| @@ -54,6 +54,11 @@ ag_display_theme_to_css(AgDisplayTheme *theme) | |||||||
|     gchar   *ret; |     gchar   *ret; | ||||||
|     GString *css = NULL; |     GString *css = NULL; | ||||||
|  |  | ||||||
|  |     // Null themes are possible, deal with it! | ||||||
|  |     if (theme == NULL) { | ||||||
|  |         return g_strdup(""); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     if (theme->planets_include) { |     if (theme->planets_include) { | ||||||
|         css = g_string_new(planet_none); |         css = g_string_new(planet_none); | ||||||
|     } else { |     } else { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user