client: first first time bootup failure

This fixes a long standing problem.

On first time startup for OPRS, pluginList will return null, and plugins installed during that first bootup will no longer update in the list.
Requiring every single new user to restart the client at least once before using any new plugins.
This commit is contained in:
Tyler Bochard
2020-10-03 20:14:18 -04:00
committed by GitHub
parent d13bc058d5
commit 02198b51f1

View File

@@ -701,6 +701,9 @@ public class PluginListPanel extends PluginPanel
public void sortPluginList(Comparator<PluginListItem> comparator)
{
if (pluginList == null)
return;
if (comparator != null)
{
pluginList.sort(comparator.thenComparing(ev -> ev.getPluginConfig().getName()));