Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Affects resolver 2.1.0 (svn revision 1463059)
ResolverImpl.toStringBlame() throws NPE on line 2011.
This line of code assumes all Capabilities have an attribute that has the same name as the Capability namespace. While this is true for many namespaces (e.g. osgi.wiring.package), it is not universally true. For example the following is a valid Capability according to the R5 spec and results in the NPE:
Provide-Capability: osgi.service; objectClass=org.example.Foo