You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2010/06/09 21:40:13 UTC

[jira] Closed: (FELIX-2401) NPE in org.apache.felix.framework.FilterImpl.DictionaryCapability.getAttribute(String)

     [ https://issues.apache.org/jira/browse/FELIX-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier closed FELIX-2401.
------------------------------------


Works like a charm !

Thanks !

> NPE in org.apache.felix.framework.FilterImpl.DictionaryCapability.getAttribute(String)
> --------------------------------------------------------------------------------------
>
>                 Key: FELIX-2401
>                 URL: https://issues.apache.org/jira/browse/FELIX-2401
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.0
>            Reporter: Clement Escoffier
>            Assignee: Richard S. Hall
>             Fix For: framework-3.2.0
>
>
> The getAttribute method can throw an NPE if the key is not contained into in map (m_map)
> {code}
> if (m_dict != null)
>             {
>                 if (m_map != null)
>                 {
>                     key = (String) m_map.get(name);  <= returns null
>                 }
>                 value = m_dict.get(key);  <= NPE here, because the comparator to null.toString()
>             }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.