avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/policy/src/java/org/apache/excalibur/policy/runtime PolicyEntry.java
Date Sat, 28 Sep 2002 02:11:39 GMT
donaldp     2002/09/27 19:11:39

  Modified:    policy/src/java/org/apache/excalibur/policy/runtime
                        PolicyEntry.java
  Log:
  Add in guards against null parameters
  
  Revision  Changes    Path
  1.2       +9 -0      jakarta-avalon-excalibur/policy/src/java/org/apache/excalibur/policy/runtime/PolicyEntry.java
  
  Index: PolicyEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/policy/src/java/org/apache/excalibur/policy/runtime/PolicyEntry.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PolicyEntry.java	25 Sep 2002 12:37:43 -0000	1.1
  +++ PolicyEntry.java	28 Sep 2002 02:11:39 -0000	1.2
  @@ -29,6 +29,15 @@
       public PolicyEntry( final CodeSource codeSource,
                           final Permissions permissions )
       {
  +        if( null == codeSource )
  +        {
  +            throw new NullPointerException( "codeSource" );
  +        }
  +        if( null == permissions )
  +        {
  +            throw new NullPointerException( "permissions" );
  +        }
  +
           m_codeSource = codeSource;
           m_permissions = permissions;
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message