Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2018-01-19 09:21:19 -0500
committerThomas Watson2018-01-19 15:27:05 -0500
commit81563662fc363e85f9311289f2e9026ecfacd390 (patch)
treec946170860538c0e28de5dd809921945db34d7a7
parent29524e902fce77df02b96a4d3f8736e6446ce3d0 (diff)
downloadrt.equinox.p2-81563662fc363e85f9311289f2e9026ecfacd390.tar.gz
rt.equinox.p2-81563662fc363e85f9311289f2e9026ecfacd390.tar.xz
rt.equinox.p2-81563662fc363e85f9311289f2e9026ecfacd390.zip
Bug 497094 - If a bundle has no symbolic name a NullPointerException canI20180122-0800I20180121-2000I20180121-0800I20180120-1500I20180120-0800I20180119-2000
happen in ConfigApplier.refreshPackages Change-Id: I39271ba32f2d10b71cb4a3cc24c0554c41e3173d Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
-rw-r--r--bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java2
1 files changed, 1 insertions, 1 deletions
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 1d5f10c09..8e5a3dd15 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 @@ class ConfigApplier {
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);

Back to the top