From 938170b97b74524b540ae8db64a12313c90d6ba7 Mon Sep 17 00:00:00 2001 From: Konloch Date: Tue, 27 Jul 2021 01:25:42 -0700 Subject: [PATCH] Bug fix --- .../club/bytecodeviewer/gui/resourcelist/ResourceListPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java index e56f39fa..e776d68c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java @@ -320,7 +320,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File } //view classes - if (MiscUtils.getFileHeaderMagicNumber(content).equalsIgnoreCase("cafebabe") + if (content != null && MiscUtils.getFileHeaderMagicNumber(content).equalsIgnoreCase("cafebabe") || name.endsWith(".class")) { try