You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2015/09/28 14:51:04 UTC
[jira] [Resolved] (FELIX-5015) NPE in ResolverImpl
[ https://issues.apache.org/jira/browse/FELIX-5015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Bosschaert resolved FELIX-5015.
-------------------------------------
Resolution: Fixed
I had the same problem and verified that Alexandre's patch resolves it. So I have applied the patch here: http://svn.apache.org/viewvc?view=revision&revision=1705679
Many thanks to Alexandre!
> NPE in ResolverImpl
> -------------------
>
> Key: FELIX-5015
> URL: https://issues.apache.org/jira/browse/FELIX-5015
> Project: Felix
> Issue Type: Bug
> Components: Resolver
> Affects Versions: resolver-1.6.0
> Reporter: Alexandre Roman
> Assignee: David Bosschaert
> Attachments: FELIX-5015.patch.gz
>
>
> The method getPackageSources in ResolverImpl.java returns a Set.
> This collection is used in mergeUses (line 1039) in a foreach loop.
> A null value may be returned by getPackageSources, as a result of querying a Map. In this case, the foreach loop in mergeUses will trigger a NPE.
> The method getPackageSources should return an empty Set when there is no result.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)