diff --git a/Plugins/Wox.Plugin.ControlPanel/ControlPanelList.cs b/Plugins/Wox.Plugin.ControlPanel/ControlPanelList.cs index 7b664f1fc7..49c4b3831f 100644 --- a/Plugins/Wox.Plugin.ControlPanel/ControlPanelList.cs +++ b/Plugins/Wox.Plugin.ControlPanel/ControlPanelList.cs @@ -230,6 +230,12 @@ namespace Wox.Plugin.ControlPanel if (currentKey.OpenSubKey("DefaultIcon").GetValue(null) != null) { iconString = new List(currentKey.OpenSubKey("DefaultIcon").GetValue(null).ToString().Split(new[] { ',' }, 2)); + if (string.IsNullOrEmpty(iconString[0])) + { + // fallback to default icon + return null; + } + if (iconString[0][0] == '@') { iconString[0] = iconString[0].Substring(1);