Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5015

NPE in ResolverImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • resolver-1.6.0
    • resolver-1.8.0
    • Resolver
    • None

    Description

      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.

      Attachments

        1. FELIX-5015.patch.gz
          0.4 kB
          Enrique Ruiz (DiSiD Corporation S.L.)

        Activity

          People

            bosschaert David Bosschaert
            romale Alexandre Roman
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: