commit | 81563662fc363e85f9311289f2e9026ecfacd390 | [log] [tgz] |
---|---|---|
author | Thomas Watson <tjwatson@us.ibm.com> | Fri Jan 19 08:21:19 2018 -0600 |
committer | Thomas Watson <tjwatson@us.ibm.com> | Fri Jan 19 15:27:05 2018 -0500 |
tree | c946170860538c0e28de5dd809921945db34d7a7 | |
parent | 29524e902fce77df02b96a4d3f8736e6446ce3d0 [diff] |
Bug 497094 - If a bundle has no symbolic name a NullPointerException can happen in ConfigApplier.refreshPackages Change-Id: I39271ba32f2d10b71cb4a3cc24c0554c41e3173d Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java b/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java index 1d5f10c..8e5a3dd 100644 --- a/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java +++ b/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java
@@ -397,7 +397,7 @@ Set<Bundle> allSameBSNs = new LinkedHashSet<>(); // maintain order and avoid duplicates for (Bundle bundle : bundles) { allSameBSNs.add(bundle); - String bsn = bundle.getLocation(); + String bsn = bundle.getSymbolicName(); if (bsn != null) { // look for others with same BSN Bundle[] sameBSNs = packageAdminService.getBundles(bsn, null);