diff options
author | Thomas Watson | 2020-04-13 13:54:45 +0000 |
---|---|---|
committer | Thomas Watson | 2020-04-13 13:54:45 +0000 |
commit | ff9fd2b6ed7913015b4659454b64a7218ab3e853 (patch) | |
tree | d87e1b79beaa06bece7b9f383c6933f2ff1767bb | |
parent | 56ce06851ed31a2bc69bbacca6bcb27ee5dc997e (diff) | |
download | rt.equinox.bundles-ff9fd2b6ed7913015b4659454b64a7218ab3e853.tar.gz rt.equinox.bundles-ff9fd2b6ed7913015b4659454b64a7218ab3e853.tar.xz rt.equinox.bundles-ff9fd2b6ed7913015b4659454b64a7218ab3e853.zip |
Bug 562061 - [weaving] Avoid weaving for bundles with no base fileI20200414-1010I20200414-0630I20200413-1800
Change-Id: If31b32379227840a070b081263a99e343e4d1bee
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
-rw-r--r-- | bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java index ca45ea2d1..fac529a31 100644 --- a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java +++ b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2014 IBM Corporation and others. + * Copyright (c) 2006, 2020 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -223,6 +223,10 @@ public class WeavingHook extends AbstractWeavingHook { */ public BundleFileWrapper wrapBundleFile(final BundleFile bundleFile, final Generation generation, final boolean base) { + if (bundleFile.getBaseFile() == null) { + // must have a base file to work + return null; + } BundleFileWrapper wrapped = null; if (Debug.DEBUG_BUNDLE) Debug.println("> WeavingHook.wrapBundleFile() bundle=" |