diff --git a/src/main/java/me/coley/recaf/ui/controls/view/ClassViewport.java b/src/main/java/me/coley/recaf/ui/controls/view/ClassViewport.java index dd1cddcb3..cc6fa82af 100644 --- a/src/main/java/me/coley/recaf/ui/controls/view/ClassViewport.java +++ b/src/main/java/me/coley/recaf/ui/controls/view/ClassViewport.java @@ -100,12 +100,9 @@ public void updateView() { // SUPPLIER: Fetch decompiled code String decompilerPrefix = (controller.config().decompile().showName ? "// Decompiled with: " + decompiler.getNameAndVersion() + "\n" : ""); - String classVersionPrefix = ""; byte[] clazz = controller.getWorkspace().getRawClass(path); - if (clazz != null) { - int version = ClassUtil.getVersion(clazz) - ClassUtil.VERSION_OFFSET; - classVersionPrefix = "// Class Version: " + version + "\n"; - } + int version = ClassUtil.getVersion(clazz) - ClassUtil.VERSION_OFFSET; + String classVersionPrefix = "// Class Version: " + version + "\n"; String decompile = decompilerPrefix + classVersionPrefix + decompiler.create(controller).decompile(path); return EscapeUtil.unescapeUnicode(decompile);