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/containerkit/src/java/org/apache/excalibur/containerkit/metainfo DependencyDescriptor.java
Date Sun, 09 Jun 2002 01:07:15 GMT
donaldp     2002/06/08 18:07:15

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        DependencyDescriptor.java
  Log:
  Add null pointer guard
  
  Revision  Changes    Path
  1.13      +12 -1     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/DependencyDescriptor.java
  
  Index: DependencyDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/DependencyDescriptor.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DependencyDescriptor.java	9 Jun 2002 00:34:17 -0000	1.12
  +++ DependencyDescriptor.java	9 Jun 2002 01:07:15 -0000	1.13
  @@ -32,7 +32,7 @@
    * demands.</p>
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.12 $ $Date: 2002/06/09 00:34:17 $
  + * @version $Revision: 1.13 $ $Date: 2002/06/09 01:07:15 $
    */
   public final class DependencyDescriptor
       extends FeatureDescriptor
  @@ -64,6 +64,17 @@
                                    final Properties attributes )
       {
           super( attributes );
  +
  +        if( null == role )
  +        {
  +            throw new NullPointerException( "role" );
  +        }
  +
  +        if( null == service )
  +        {
  +            throw new NullPointerException( "service" );
  +        }
  +
           m_role = role;
           m_service = service;
       }
  
  
  

--
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