diff options
Diffstat (limited to 'maven-plugins/trunk/maven-bundle-plugin/src/main/java')
-rw-r--r-- | maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java b/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java index 8636ba30dc..446e407523 100644 --- a/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java +++ b/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java @@ -74,7 +74,9 @@ final class BundleUtil { } else { JarFile jar = new JarFile(file, false); Manifest manifest = jar.getManifest(); - bundleName = manifest.getMainAttributes().getValue(BUNDLE_SYMBOLICNAME); + if (manifest != null){ + bundleName = manifest.getMainAttributes().getValue(BUNDLE_SYMBOLICNAME); + } jar.close(); } if (bundleName == null) { |