From 18e1c101fd429fb9cbd08a6cc446528e010369de Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Jul 2021 06:14:49 -0700 Subject: [PATCH] Plugin Console Bugfix --- .../bytecode/club/bytecodeviewer/plugin/PluginManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java index f3ecbff1..fce2d428 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java @@ -131,7 +131,11 @@ public final class PluginManager } console.setConsoleID(id); - activeTabbedConsole.addConsole(console.getComponent(0), activePlugin.activeContainer.name); + + final String name = (activePlugin == null || activePlugin.activeContainer == null) + ? console.getTitle() : activePlugin.activeContainer.name; + + activeTabbedConsole.addConsole(console.getComponent(0), name); } public static void register(String name, PluginLaunchStrategy strat) {