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/model Target.java
Date Thu, 13 Jun 2002 05:39:14 GMT
donaldp     2002/06/12 22:39:14

  Modified:    container/src/java/org/apache/myrmidon/interfaces/model
                        Target.java
  Log:
  Make sure model is not null and is read-only
  
  Revision  Changes    Path
  1.12      +8 -1      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/model/Target.java
  
  Index: Target.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/model/Target.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Target.java	13 Jun 2002 02:59:25 -0000	1.11
  +++ Target.java	13 Jun 2002 05:39:14 -0000	1.12
  @@ -35,7 +35,14 @@
                      final ModelElement model )
       {
           super( name, description );
  +
  +        if( null == model )
  +        {
  +            throw new NullPointerException( "model" );
  +        }
  +
           m_model = model;
  +        model.makeReadOnly();
       }
   
       /**
  
  
  

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