[jboss-cvs] JBossAS SVN: r80223 - projects/security/security-xacml/trunk/jboss-xacml/src/main/java/org/jboss/security/xacml/core.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Oct 29 16:32:38 EDT 2008


Author: anil.saldhana at jboss.com
Date: 2008-10-29 16:32:38 -0400 (Wed, 29 Oct 2008)
New Revision: 80223

Modified:
   projects/security/security-xacml/trunk/jboss-xacml/src/main/java/org/jboss/security/xacml/core/JBossPDP.java
Log:
SECURITY-295: throw RTE

Modified: projects/security/security-xacml/trunk/jboss-xacml/src/main/java/org/jboss/security/xacml/core/JBossPDP.java
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/main/java/org/jboss/security/xacml/core/JBossPDP.java	2008-10-29 20:07:53 UTC (rev 80222)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/main/java/org/jboss/security/xacml/core/JBossPDP.java	2008-10-29 20:32:38 UTC (rev 80223)
@@ -293,6 +293,8 @@
          //Validate against schema
          ClassLoader tcl = SecurityActions.getContextClassLoader();
          URL schemaURL = tcl.getResource("schema/jbossxacml-2.0.xsd");
+         if(schemaURL == null)
+            throw new IllegalStateException("Schema URL is null:" + "schema/jbossxacml-2.0.xsd");
          SchemaFactory scFact = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
          Schema schema = scFact.newSchema(schemaURL);
          unmarshaller.setSchema(schema);




More information about the jboss-cvs-commits mailing list