felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Roman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5015) NPE in ResolverImpl
Date Wed, 26 Aug 2015 09:27:45 GMT
Alexandre Roman created FELIX-5015:

             Summary: 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

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

View raw message