[JBoss JIRA] Created: (SECURITY-395) AbstractPolicy: Empty Description element throws NPE
by Anil Saldhana (JIRA)
AbstractPolicy: Empty Description element throws NPE
----------------------------------------------------
Key: SECURITY-395
URL: https://jira.jboss.org/jira/browse/SECURITY-395
Project: JBoss Security and Identity Management
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jboss-sunxacml
Affects Versions: JBossXACML_2.0.3.CR3
Reporter: Anil Saldhana
Assignee: Anil Saldhana
Fix For: JBossXACML_2.0.3.CR4
<Policy PolicyId="urn:oasis:names:tc:xspa:1.0:org.catch-all" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:permit-overrides">
<Description></Description>
<Target />
<Rule RuleId="" Effect="Permit"></Rule>
</Policy>
AbstractPolicy.java
for (int i = 0; i < children.getLength(); i++) {
Node child = children.item(i);
String cname = SunxacmlUtil.getNodeName(child);
if (cname.equals("Description")) {
description = child.getFirstChild().getNodeValue();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months