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

Possible NPE for jars with null Manifest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • framework-2.0.5
    • framework-3.0.0
    • Framework
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: