diff --git a/src/Widgets/Screenshot.vala b/src/Widgets/Screenshot.vala index 7da18d851..549fed73d 100644 --- a/src/Widgets/Screenshot.vala +++ b/src/Widgets/Screenshot.vala @@ -50,7 +50,12 @@ public class AppCenter.Screenshot : Granite.Bin { }); } - private void set_accent_color (string color) { + private void set_accent_color (string? color) { + if (color == null) { + /* We automatically use the accent color */ + return; + } + if (providers == null) { providers = new Gee.HashMap (); }