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

Marcel Offermans reassigned FELIX-3057:
---------------------------------------

    Assignee: Marcel Offermans

> getServiceReferences() should not return an empty array
> -------------------------------------------------------
>
>                 Key: FELIX-3057
>                 URL: https://issues.apache.org/jira/browse/FELIX-3057
>             Project: Felix
>          Issue Type: Bug
>          Components: Dependency Manager
>    Affects Versions: dependencymanager-3.0.0
>            Reporter: Marcel Offermans
>            Assignee: Marcel Offermans
>
> When using the (still experimental) filter indices, under certain 
> circumstances you can get an index out of bounds exception in the 
> ServiceDependencyImpl.lookupService() method. The cause is an empty array 
> being returned by BundleContext.getServiceReferences(). The spec states the 
> method should return null in these cases in stead. The problem is in the 
> filter index, which intercepts the bundle context, but does not special case 
> for this, simply returning empty arrays if there were no references (or none 
> were assignable).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to