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

getLocales() in DefaultMetaTypeProvider needs to check return of findEntries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • metatype-1.0.4
    • metatype-1.0.6
    • Metatype Service
    • None
    • ubuntu 10.04

    Description

      DefaultMetaTypeProvider:128 does a findEntries call which it then uses at 130 , but assumes that it will always be non-null. findEntries can, and does, return null.

      If it helps, I encountered this problem in felix karaf 2.1.4, when I added a bundle to the system to iterate on MetaType information for all the ManagedService and ManagedServiceFactory bundles in the system, IF they also had an associated configuration (even an empty one should be iterable to a limited extent, aka, recognizing that it has a configuration). All the bundles successfully iterated except for FileInstall 3.1.10. This may or may not imply that there is also a bug in FileInstall 3.1.10.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            aradzak jamie campbell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: