
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Equinox 3.4.0
|
|
|
A NullPointerException In PackageAdminResolver:70 is thrown if the manifest entry Require-Bundle contains white spaces after the comma (e.g. Require-Bundle: bundleA;bundle-version="1.0.0", bundleB;bundle-version="1.0.0"). The bundle A get's resolved
The problem is the name for bundle B returned by OsgiHeaderUtils.parseRequiredBundleString() contains a white space (" bundleB") and pa.getBundles() therefore will
not find it:
String[] parsed = OsgiHeaderUtils.parseRequiredBundleString(entries[i]);
Bundle requiredBundle = pa.getBundles(parsed[0], parsed[1])[0];
|
|
Description
|
A NullPointerException In PackageAdminResolver:70 is thrown if the manifest entry Require-Bundle contains white spaces after the comma (e.g. Require-Bundle: bundleA;bundle-version="1.0.0", bundleB;bundle-version="1.0.0"). The bundle A get's resolved
The problem is the name for bundle B returned by OsgiHeaderUtils.parseRequiredBundleString() contains a white space (" bundleB") and pa.getBundles() therefore will
not find it:
String[] parsed = OsgiHeaderUtils.parseRequiredBundleString(entries[i]);
Bundle requiredBundle = pa.getBundles(parsed[0], parsed[1])[0];
|
Show » |
|
The workaround for the moment (as you've already identified) is to not use spaces.
Cheers,