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

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        ServiceDescriptor.java
  Log:
  Add null pointer guard
  
  Revision  Changes    Path
  1.14      +7 -1      jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ServiceDescriptor.java
  
  Index: ServiceDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ServiceDescriptor.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ServiceDescriptor.java	9 Jun 2002 00:37:59 -0000	1.13
  +++ ServiceDescriptor.java	9 Jun 2002 01:05:59 -0000	1.14
  @@ -28,7 +28,7 @@
    * upon to work in all containers.</p>
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.13 $ $Date: 2002/06/09 00:37:59 $
  + * @version $Revision: 1.14 $ $Date: 2002/06/09 01:05:59 $
    */
   public final class ServiceDescriptor
       extends FeatureDescriptor
  @@ -58,6 +58,12 @@
                                 final Properties attributes )
       {
           super( attributes );
  +
  +        if( null == designator )
  +        {
  +            throw new NullPointerException( "designator" );
  +        }
  +
           m_designator = designator;
       }
   
  
  
  

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