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 ContextDescriptor.java
Date Sun, 09 Jun 2002 01:04:55 GMT
donaldp     2002/06/08 18:04:55

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        ContextDescriptor.java
  Log:
  Make sure Nulls are not passed into constructor
  
  Revision  Changes    Path
  1.2       +12 -1     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ContextDescriptor.java
  
  Index: ContextDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ContextDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ContextDescriptor.java	9 Jun 2002 01:04:00 -0000	1.1
  +++ ContextDescriptor.java	9 Jun 2002 01:04:55 -0000	1.2
  @@ -24,7 +24,7 @@
    * about Context requirements.</p>
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.1 $ $Date: 2002/06/09 01:04:00 $
  + * @version $Revision: 1.2 $ $Date: 2002/06/09 01:04:55 $
    */
   public class ContextDescriptor
       extends FeatureDescriptor
  @@ -49,6 +49,17 @@
                                 final Properties attributes )
       {
           super( attributes );
  +
  +        if( null == classname )
  +        {
  +            throw new NullPointerException( "classname" );
  +        }
  +
  +        if( null == entrys )
  +        {
  +            throw new NullPointerException( "entrys" );
  +        }
  +
           m_classname = classname;
           m_entrys = entrys;
       }
  
  
  

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