geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/security/util ConfigurationUtil.java
Date Sun, 04 Jan 2004 22:52:28 GMT
adc         2004/01/04 14:52:28

  Modified:    modules/core/src/java/org/apache/geronimo/security/util
                        ConfigurationUtil.java
  Log:
  Exclude list may be null.  Thanks Jacek!
  
  Revision  Changes    Path
  1.5       +13 -11    incubator-geronimo/modules/core/src/java/org/apache/geronimo/security/util/ConfigurationUtil.java
  
  Index: ConfigurationUtil.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/security/util/ConfigurationUtil.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ConfigurationUtil.java	3 Jan 2004 01:09:31 -0000	1.4
  +++ ConfigurationUtil.java	4 Jan 2004 22:52:28 -0000	1.5
  @@ -342,17 +342,19 @@
           /**
            * Section 3.1.5.2
            */
  -        Method[] methods = excludeList.getMethod();
  -        try {
  -            for (int i = 0; i < methods.length; i++) {
  -                EJBMethodPermission permission = new EJBMethodPermission(methods[i].getEjbName(),
  -                        methods[i].getMethodName(),
  -                        methods[i].getMethodIntf(),
  -                        methods[i].getMethodParam());
  -                configuration.addToExcludedPolicy(permission);
  +        if (excludeList != null) {
  +            Method[] methods = excludeList.getMethod();
  +            try {
  +                for (int i = 0; i < methods.length; i++) {
  +                    EJBMethodPermission permission = new EJBMethodPermission(methods[i].getEjbName(),
  +                            methods[i].getMethodName(),
  +                            methods[i].getMethodIntf(),
  +                            methods[i].getMethodParam());
  +                    configuration.addToExcludedPolicy(permission);
  +                }
  +            } catch (PolicyContextException e) {
  +                throw new GeronimoSecurityException(e);
               }
  -        } catch (PolicyContextException e) {
  -            throw new GeronimoSecurityException(e);
           }
   
           /**
  
  
  

Mime
View raw message