[
https://issues.apache.org/jira/browse/FELIX-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard S. Hall updated FELIX-2317:
-----------------------------------
Fix Version/s: felix-3.0.0
Affects Version/s: felix-2.0.5
> 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: felix-2.0.5
> Reporter: Sahoo
> Fix For: felix-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.