diff options
author | Thomas Watson | 2020-07-02 13:22:14 +0000 |
---|---|---|
committer | Thomas Watson | 2020-07-02 13:22:38 +0000 |
commit | 17fdf326eff3180a0958de486394f8e079b5d164 (patch) | |
tree | 9761a3a419614c4abb4f2f7c1f6f9c89f97ffc84 | |
parent | d5a30b98485696d2234fef700bc2eaacdaacd599 (diff) | |
download | rt.equinox.framework-17fdf326eff3180a0958de486394f8e079b5d164.tar.gz rt.equinox.framework-17fdf326eff3180a0958de486394f8e079b5d164.tar.xz rt.equinox.framework-17fdf326eff3180a0958de486394f8e079b5d164.zip |
Bug 552573 - Null check needed in case of connect bundlesY20200704-1200Y20200703-0300I20200706-0600I20200705-1800I20200705-0710I20200705-0600I20200704-1800I20200704-0600I20200703-1800I20200702-2150I20200702-1800
Connect bundles have no source base file. This results in null returned
by getBaseFile. Other calls to this method were already fixed. Adding
the null check to DevClassLoadingHook to be safe.
Change-Id: I81e8bdf6c6e00ac95c87f13e560d00364c3a7ae2
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hooks/DevClassLoadingHook.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hooks/DevClassLoadingHook.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hooks/DevClassLoadingHook.java index d7ec50bc4..ca9a3e64b 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hooks/DevClassLoadingHook.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hooks/DevClassLoadingHook.java @@ -79,7 +79,7 @@ public class DevClassLoadingHook extends ClassLoaderHook implements KeyedElement if (!fromFragment && devCP.indexOf("..") >= 0) { //$NON-NLS-1$ // if in dev mode, try using cp as a relative path from the base bundle file File base = sourceGeneration.getBundleFile().getBaseFile(); - if (base.isDirectory()) { + if (base != null && base.isDirectory()) { // this is only supported for directory bundles ClasspathEntry entry = hostmanager.getExternalClassPath(new File(base, devCP).getAbsolutePath(), sourceGeneration); if (entry != null) { |