[
https://issues.apache.org/jira/browse/FELIX-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alin Dreghiciu updated FELIX-480:
---------------------------------
Attachment: FELIX-480.patch
Patch to return an empty resource array in case of a filter syntax exception.
Another alternative will be to throw a runtime exception something like
IllegalArgumentException.
> NPE on discoverResources with invalid syntax filter
> ---------------------------------------------------
>
> Key: FELIX-480
> URL: https://issues.apache.org/jira/browse/FELIX-480
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR)
> Affects Versions: 1.0.0
> Reporter: Alin Dreghiciu
> Priority: Minor
> Attachments: FELIX-480.patch
>
>
> When using the RepositoryAdmin.discoverResources with an invalid syntax
> filter string it will result into a NPE as the osgi filter creation syntax
> exception is just sent to System.err but the method flow continues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.