[jboss-cvs] JBossAS SVN: r63588 - trunk/server/src/main/org/jboss/deployment/security.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jun 21 02:20:53 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-06-21 02:20:53 -0400 (Thu, 21 Jun 2007)
New Revision: 63588

Modified:
   trunk/server/src/main/org/jboss/deployment/security/JaccPolicyUtil.java
Log:
Validate the ignoreSuffix set for null

Modified: trunk/server/src/main/org/jboss/deployment/security/JaccPolicyUtil.java
===================================================================
--- trunk/server/src/main/org/jboss/deployment/security/JaccPolicyUtil.java	2007-06-21 04:15:22 UTC (rev 63587)
+++ trunk/server/src/main/org/jboss/deployment/security/JaccPolicyUtil.java	2007-06-21 06:20:53 UTC (rev 63588)
@@ -69,15 +69,19 @@
          String childName = childDC.getSimpleName();
          boolean tobeIgnored = false;
          //Go through the ignore list
-         for(String ignoreStr: ignoreSuffix)
+         if( ignoreSuffix != null )
          {
-            tobeIgnored = false;
-            if(childName.endsWith(ignoreStr))
+            for(String ignoreStr: ignoreSuffix)
             {
-               tobeIgnored = true;
-               break;
-            } 
+               tobeIgnored = false;
+               if(childName.endsWith(ignoreStr))
+               {
+                  tobeIgnored = true;
+                  break;
+               } 
+            }
          }
+
          //Check if it is a "jar" file, then it must be ejb deployment to consider
          if(childName.endsWith("jar")  && !tobeIgnored  
                && !isEJBDeployment(childDC.getDeploymentUnit()))




More information about the jboss-cvs-commits mailing list