[
https://issues.apache.org/jira/browse/FELIX-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard S. Hall resolved FELIX-2317.
------------------------------------
Assignee: Richard S. Hall
Resolution: Fixed
I committed a patch that checks for a null manifest. Please close if you are
satisfied, thanks.
> Possible NPE for jars with null Manifest
> ----------------------------------------
>
> Key: FELIX-2317
> URL: https://issues.apache.org/jira/browse/FELIX-2317
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: framework-2.0.5
> Reporter: Sahoo
> Assignee: Richard S. Hall
> Fix For: framework-3.0.0
>
>
> 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);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.