peterreilly 2004/01/08 05:36:34 Modified: src/main/org/apache/tools/ant/types PatternSet.java Log: Fix npe if <include> does not have a "name" attribute PR: 25982 Obtained from: Dawid Weiss Revision Changes Path 1.32 +1 -1 ant/src/main/org/apache/tools/ant/types/PatternSet.java Index: PatternSet.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/PatternSet.java,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- PatternSet.java 17 Sep 2003 09:20:38 -0000 1.31 +++ PatternSet.java 8 Jan 2004 13:36:34 -0000 1.32 @@ -123,7 +123,7 @@ } public String toString() { - StringBuffer buf = new StringBuffer(name); + StringBuffer buf = new StringBuffer(name != null ? name : ""); if ((ifCond != null) || (unlessCond != null)) { buf.append(":"); String connector = "";
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]