You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2013/04/04 16:35:17 UTC

[jira] [Resolved] (FELIX-4008) [resolver]: NPE in toStringBlame

     [ https://issues.apache.org/jira/browse/FELIX-4008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall resolved FELIX-4008.
------------------------------------

    Resolution: Fixed

I've applied this patch, please close if satisfied. Thanks.
                
> [resolver]: NPE in toStringBlame
> --------------------------------
>
>                 Key: FELIX-4008
>                 URL: https://issues.apache.org/jira/browse/FELIX-4008
>             Project: Felix
>          Issue Type: Bug
>          Components: Resolver
>            Reporter: Neil Bartlett
>         Attachments: FELIX-4008.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Re: [jira] [Resolved] (FELIX-4008) [resolver]: NPE in toStringBlame

Posted by Ferry Huberts <ma...@hupie.com>.
thanks guys!

On 04/04/13 16:35, Richard S. Hall (JIRA) wrote:
> 
>      [ https://issues.apache.org/jira/browse/FELIX-4008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Richard S. Hall resolved FELIX-4008.
> ------------------------------------
> 
>     Resolution: Fixed
> 
> I've applied this patch, please close if satisfied. Thanks.
>                 
>> [resolver]: NPE in toStringBlame
>> --------------------------------
>>
>>                 Key: FELIX-4008
>>                 URL: https://issues.apache.org/jira/browse/FELIX-4008
>>             Project: Felix
>>          Issue Type: Bug
>>          Components: Resolver
>>            Reporter: Neil Bartlett
>>         Attachments: FELIX-4008.patch
>>
>>
>> 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
> 
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira
> 

-- 
Ferry Huberts