From 08e129b4702e5b281fbda4be9a90c4b261de8186 Mon Sep 17 00:00:00 2001 From: Konloch Date: Thu, 22 Jul 2021 22:10:53 -0700 Subject: [PATCH] Fixes #333 A work around for the SettingsDialog menu being null --- .../club/bytecodeviewer/gui/components/SettingsDialog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SettingsDialog.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SettingsDialog.java index c06a8620..2ef5f291 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SettingsDialog.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SettingsDialog.java @@ -90,6 +90,9 @@ public class SettingsDialog extends JScrollPane @Override public String getName() { + if(menu == null) + return "ERROR: Dialog missing menu"; + return menu.getText(); } } \ No newline at end of file