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);