diff options
-rw-r--r-- | src/main/java/org/openslx/util/AppUtil.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/util/AppUtil.java b/src/main/java/org/openslx/util/AppUtil.java index 340dc21..9a1e039 100644 --- a/src/main/java/org/openslx/util/AppUtil.java +++ b/src/main/java/org/openslx/util/AppUtil.java @@ -59,7 +59,9 @@ public class AppUtil jarFileStream = AppUtil.class.getProtectionDomain().getCodeSource().getLocation().openStream(); jarStream = new JarInputStream( jarFileStream ); final Manifest mf = jarStream.getManifest(); - manifestAttributes = mf.getMainAttributes(); + if ( mf != null ) { + manifestAttributes = mf.getMainAttributes(); + } } catch ( Exception e ) { LOGGER.warn( "Cannot read jar/manifest attributes", e ); } finally { |