diff options
Diffstat (limited to 'src/java/com/jogamp/common/util')
-rw-r--r-- | src/java/com/jogamp/common/util/JogampVersion.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/com/jogamp/common/util/JogampVersion.java b/src/java/com/jogamp/common/util/JogampVersion.java index 2c218ce..f7da413 100644 --- a/src/java/com/jogamp/common/util/JogampVersion.java +++ b/src/java/com/jogamp/common/util/JogampVersion.java @@ -48,9 +48,9 @@ public class JogampVersion { protected JogampVersion(String packageName, Manifest mf) { this.packageName = packageName; - this.mf = mf; - this.hash = mf.hashCode(); - mainAttributes = mf.getMainAttributes(); + this.mf = ( null != mf ) ? mf : new Manifest(); + this.hash = this.mf.hashCode(); + mainAttributes = this.mf.getMainAttributes(); mainAttributeNames = mainAttributes.keySet(); } |