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