ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/workspace ProjectRef.java
Date Thu, 04 Jul 2002 00:28:38 GMT
donaldp     2002/07/03 17:28:38

  Modified:    container/src/java/org/apache/myrmidon/interfaces/workspace
                        ProjectRef.java
  Log:
  Make sure valid values are passed to ProjectRef object
  
  Revision  Changes    Path
  1.4       +9 -1      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/workspace/ProjectRef.java
  
  Index: ProjectRef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/workspace/ProjectRef.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ProjectRef.java	27 Jun 2002 11:13:08 -0000	1.3
  +++ ProjectRef.java	4 Jul 2002 00:28:38 -0000	1.4
  @@ -29,6 +29,14 @@
       public ProjectRef( final String name,
                          final ProjectDescriptor project )
       {
  +        if( null == name )
  +        {
  +            throw new NullPointerException( "name" );
  +        }
  +        if( null == project )
  +        {
  +            throw new NullPointerException( "project" );
  +        }
           m_name = name;
           m_project = project;
       }
  
  
  

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


Mime
View raw message