diff options
author | Simon Rettberg | 2024-05-15 17:00:38 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-05-15 17:00:38 +0200 |
commit | 2a50a475c329a1dcfea13bff0799537db5d969d7 (patch) | |
tree | f7726edfbea4a117cf62b6d46eb3492ee06431fc | |
parent | Util: Fix tickCount() (diff) | |
download | master-sync-shared-2a50a475c329a1dcfea13bff0799537db5d969d7.tar.gz master-sync-shared-2a50a475c329a1dcfea13bff0799537db5d969d7.tar.xz master-sync-shared-2a50a475c329a1dcfea13bff0799537db5d969d7.zip |
Fix NPE
-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 { |