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

NPE in BundleRevisionImpl.getResourcesLocal()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: framework-4.4.0, framework-5.0.1
    • Fix Version/s: framework-5.2.0
    • Component/s: Framework
    • Labels:
      None

      Description

      In some situations a NPE can be observed in the BundleRevisionImpl.getResourcesLocal() method.

      java.lang.NullPointerException: null
         at org.apache.felix.framework.BundleRevisionImpl.getResourcesLocal(BundleRevisionImpl.java:531)
         at org.apache.felix.framework.BundleWiringImpl.findResourcesByDelegation(BundleWiringImpl.java:1191)
         at org.apache.felix.framework.BundleWiringImpl.getResourcesByDelegation(BundleWiringImpl.java:1101)
         at org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5.getResources(BundleWiringImpl.java:1888)

      The offending line of code is:

        for (int i = 0; i < contentPath.size(); i++)

      So it seems that contentPath is null in some cases.

        Attachments

          Activity

            People

            • Assignee:
              bosschaert David Bosschaert
              Reporter:
              bosschaert David Bosschaert
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: