# HG changeset patch # User Jaroslav Tulach # Date 1484536085 -3600 # Node ID 97ea0f369e18431c11651ec0ba67e0741b301712 # Parent 0f100539ce6c73175b67e2b3ec2321b18aa0a6f8 Another check against missing manifest diff -r 0f100539ce6c -r 97ea0f369e18 rt/aot/src/main/java/org/apidesign/bck2brwsr/aot/Bck2BrwsrJars.java --- a/rt/aot/src/main/java/org/apidesign/bck2brwsr/aot/Bck2BrwsrJars.java Mon Jan 16 04:04:22 2017 +0100 +++ b/rt/aot/src/main/java/org/apidesign/bck2brwsr/aot/Bck2BrwsrJars.java Mon Jan 16 04:08:05 2017 +0100 @@ -154,8 +154,9 @@ JarRes jarRes = new JarRes(); listJAR(jf, jarRes, resources, exported); - - String cp = jf.getManifest().getMainAttributes().getValue("Class-Path"); // NOI18N + final Manifest manifest = jf.getManifest(); + final Attributes mainAttributes = manifest == null ? null : manifest.getMainAttributes(); + String cp = mainAttributes == null ? null : mainAttributes.getValue("Class-Path"); // NOI18N String[] parts = cp == null ? new String[0] : cp.split(" "); if (c == null) {