Skip to content

Commit e1a7f2d

Browse files
authored
Screenshot: Guard against null color (#2417)
1 parent 6288970 commit e1a7f2d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Widgets/Screenshot.vala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ public class AppCenter.Screenshot : Granite.Bin {
5050
});
5151
}
5252

53-
private void set_accent_color (string color) {
53+
private void set_accent_color (string? color) {
54+
if (color == null) {
55+
/* We automatically use the accent color */
56+
return;
57+
}
58+
5459
if (providers == null) {
5560
providers = new Gee.HashMap<string, Gtk.CssProvider> ();
5661
}

0 commit comments

Comments
 (0)