commit | 2c95f245cd9be31fca672fbe57cfe8e29d98c8a0 | [log] [tgz] |
---|---|---|
author | David Morgan Spencer Savage <dsavage@apache.org> | Wed Feb 24 22:56:38 2010 +0000 |
committer | David Morgan Spencer Savage <dsavage@apache.org> | Wed Feb 24 22:56:38 2010 +0000 |
tree | 6276e89899e44b6d7b61b09797b6c62c59b2548e | |
parent | 4b8787371326b95fd396ed639ca973e067d25a72 [diff] |
tidy up npe for project bundles git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@916031 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java b/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java index 00ebcd1..1c08187 100644 --- a/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java +++ b/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java
@@ -114,12 +114,14 @@ private void updateManifest(IPath location) throws IOException { - JarFile f = new JarFile(location.toFile()); - try { - setBundleInfo(ManifestUtil.buildBundleModelElement(f.getManifest())); - } - finally { - f.close(); + if ( location != null ) { + JarFile f = new JarFile(location.toFile()); + try { + setBundleInfo(ManifestUtil.buildBundleModelElement(f.getManifest())); + } + finally { + f.close(); + } } }