Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2012-07-18 13:43:09 -0400
committerGlyn Normington2012-07-18 13:43:09 -0400
commit296777cf665a7776acb825ea9779615bc78ccda9 (patch)
treea2561721e33e77cddd768ae3acd49984e0d4a8f6 /org.eclipse.virgo.kernel.artifact
parenta3ecac85f551b0d737431b9a11ee44dbfbf7c728 (diff)
downloadorg.eclipse.virgo.kernel-296777cf665a7776acb825ea9779615bc78ccda9.tar.gz
org.eclipse.virgo.kernel-296777cf665a7776acb825ea9779615bc78ccda9.tar.xz
org.eclipse.virgo.kernel-296777cf665a7776acb825ea9779615bc78ccda9.zip
383874: handle non-existent manifests correctly
Diffstat (limited to 'org.eclipse.virgo.kernel.artifact')
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/main/java/org/eclipse/virgo/kernel/artifact/internal/BundleManifestUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.virgo.kernel.artifact/src/main/java/org/eclipse/virgo/kernel/artifact/internal/BundleManifestUtils.java b/org.eclipse.virgo.kernel.artifact/src/main/java/org/eclipse/virgo/kernel/artifact/internal/BundleManifestUtils.java
index 81681f79..462be3fe 100644
--- a/org.eclipse.virgo.kernel.artifact/src/main/java/org/eclipse/virgo/kernel/artifact/internal/BundleManifestUtils.java
+++ b/org.eclipse.virgo.kernel.artifact/src/main/java/org/eclipse/virgo/kernel/artifact/internal/BundleManifestUtils.java
@@ -79,7 +79,7 @@ public final class BundleManifestUtils {
private static Reader manifestReaderFromJar(File file) throws IOException, SecurityException {
ArtifactFS fs = new JarFileArtifactFS(file);
ArtifactFSEntry fsEntry = fs.getEntry(JarFile.MANIFEST_NAME);
- if (fsEntry == null) {
+ if (fsEntry == null || !fsEntry.exists()) {
return null; // not an error -- no manifest means this isn't a bundle
}
StringWriter writer = new StringWriter();

Back to the top