ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types Path.java
Date Tue, 08 Aug 2000 07:26:05 GMT
bodewig     00/08/08 00:26:05

  Modified:    src/main/org/apache/tools/ant/types Path.java
  Log:
  Make Path.append() more forgiving.
  
  Revision  Changes    Path
  1.4       +1 -0      jakarta-ant/src/main/org/apache/tools/ant/types/Path.java
  
  Index: Path.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/Path.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Path.java	2000/08/03 09:00:39	1.3
  +++ Path.java	2000/08/08 07:26:05	1.4
  @@ -181,6 +181,7 @@
        * Append the contents of the other Path instance to this.
        */
       public void append(Path other) {
  +        if (other == null) return;
           String[] l = other.list();
           for (int i=0; i<l.length; i++) {
               if (elements.indexOf(l[i]) == -1) {
  
  
  

Mime
View raw message