ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Input.java
Date Wed, 26 Feb 2003 10:34:09 GMT
bodewig     2003/02/26 02:34:09

  Modified:    src/main/org/apache/tools/ant/taskdefs Input.java
  Log:
  Avoid NPE if input failed
  
  Revision  Changes    Path
  1.17      +2 -2      ant/src/main/org/apache/tools/ant/taskdefs/Input.java
  
  Index: Input.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Input.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Input.java	10 Feb 2003 14:13:34 -0000	1.16
  +++ Input.java	26 Feb 2003 10:34:09 -0000	1.17
  @@ -133,7 +133,7 @@
       }
   
       /**
  -     * Actual test method executed by jakarta-ant.
  +     * Actual method executed by jakarta-ant.
        * @exception BuildException
        */
       public void execute () throws BuildException {
  @@ -152,7 +152,7 @@
               && defaultvalue != null) {
               value = defaultvalue;
           }
  -        if (addproperty != null) {
  +        if (addproperty != null && value != null) {
               getProject().setNewProperty(addproperty, value);
           }
       }
  
  
  

Mime
View raw message