summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSimon Rettberg2024-05-15 17:00:38 +0200
committerSimon Rettberg2024-05-15 17:00:38 +0200
commit2a50a475c329a1dcfea13bff0799537db5d969d7 (patch)
treef7726edfbea4a117cf62b6d46eb3492ee06431fc /src/main/java
parentUtil: Fix tickCount() (diff)
downloadmaster-sync-shared-2a50a475c329a1dcfea13bff0799537db5d969d7.tar.gz
master-sync-shared-2a50a475c329a1dcfea13bff0799537db5d969d7.tar.xz
master-sync-shared-2a50a475c329a1dcfea13bff0799537db5d969d7.zip
Fix NPE
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/openslx/util/AppUtil.java4
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 {