Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
framework-2.0.5
-
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); }