From fe0b4ccf040db1b535084370d28d2571c663b0dc Mon Sep 17 00:00:00 2001 From: Zaxar163 Date: Fri, 29 Nov 2019 18:31:36 +0100 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9A=D0=BE=D0=B3=D0=B4=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B5=20=D0=B2=20=D0=BF?= =?UTF-8?q?=D0=B0=D0=BF=D0=BA=D0=B5=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D0=B5?= =?UTF-8?q?=D0=B9=20=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=B1=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D0=B0,=20=D0=BD=D0=B5=20=D0=B7=D0=B0=D1=81=D1=8B=D0=BF?= =?UTF-8?q?=D0=B0=D0=B5=D0=BC=20=D0=BA=D0=BE=D0=BD=D1=81=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=20NPE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pro/gravit/launcher/modules/impl/SimpleModuleManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/modules/impl/SimpleModuleManager.java b/LauncherAPI/src/main/java/pro/gravit/launcher/modules/impl/SimpleModuleManager.java index 72d701fc..50766c4d 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/modules/impl/SimpleModuleManager.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/modules/impl/SimpleModuleManager.java @@ -144,7 +144,7 @@ public LauncherModule loadModule(LauncherModule module) { @Override public LauncherModule loadModule(Path file) throws IOException { try (JarFile f = new JarFile(file.toFile())) { - String moduleClass = f.getManifest().getMainAttributes().getValue("Module-Main-Class"); + String moduleClass = f.getManifest() != null ? f.getManifest().getMainAttributes().getValue("Module-Main-Class") : null; if (moduleClass == null) { LogHelper.error("In module %s Module-Main-Class not found", file.toString()); return null;