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

Possible NPE for jars with null Manifest

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: framework-2.0.5
    • Fix Version/s: framework-3.0.0
    • Component/s: Framework
    • Labels:
      None

      Description

      JarFile.getManifest() can return null, so to avoid NPE, code must check for null return value. The following code in framework does not do so:

      public Map getManifestHeader() throws Exception

      { // Get the embedded resource. Manifest mf = m_jarFile.getManifest(); // Create a case insensitive map of manifest attributes. return new StringMap(mf.getMainAttributes(), false); }

        Attachments

          Activity

            People

            • Assignee:
              rickhall Richard S. Hall
              Reporter:
              sahoo Sanjeeb Kumar Sahoo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: