diff --git a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/BundleComponent.java b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/BundleComponent.java index cc1b292b9e6..56a0b06467e 100644 --- a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/BundleComponent.java +++ b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/BundleComponent.java @@ -268,9 +268,15 @@ protected synchronized void doManifestCompaction() { * * @return true if the bundle at the given location is valid false otherwise */ - public boolean isValidBundle() throws CoreException { - Map manifest = getManifest(); - return manifest != null && (manifest.get(Constants.BUNDLE_NAME) != null && manifest.get(Constants.BUNDLE_VERSION) != null); + public boolean isValidBundle() { + try { + Map manifest = getManifest(); + return manifest != null + && (manifest.get(Constants.BUNDLE_NAME) != null && manifest.get(Constants.BUNDLE_VERSION) != null); + } catch (CoreException e) { + // if loading the manifest fails, this is NOT a valid bundle obviously... + } + return false; } @Override