pluginlist: Add null check

This commit is contained in:
Owain van Brakel
2020-04-19 18:16:08 +02:00
parent 83f0ac6eb6
commit ed18710e1b

View File

@@ -174,7 +174,7 @@ public class PluginListPanel extends PluginPanel
sortPluginList(null);
}
if (colorOptions.stream().anyMatch(option -> option.equals(ev.getKey())))
if (pluginList != null && colorOptions.stream().anyMatch(option -> option.equals(ev.getKey())))
{
pluginList.forEach(listItem ->
{