commit | 21c449c15b4a2ceb8a7105467875b2f8cdf32cc6 | [log] [tgz] |
---|---|---|
author | David Morgan Spenser Savage <dsavage@apache.org> | Wed Feb 24 22:56:38 2010 +0000 |
committer | David Morgan Spenser Savage <dsavage@apache.org> | Wed Feb 24 22:56:38 2010 +0000 |
tree | 6276e89899e44b6d7b61b09797b6c62c59b2548e | |
parent | 7c8712f96702ee05c846f81f5339e12f1652e27e [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(); + } } }