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

Reply via email to