[ https://issues.apache.org/jira/browse/FELIX-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall resolved FELIX-2401. ------------------------------------ Assignee: Richard S. Hall Fix Version/s: framework-3.2.0 Resolution: Fixed I just committed a patch to trunk to check for null, please close if you are satisfied. 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.