You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2004/01/08 14:36:34 UTC
cvs commit: ant/src/main/org/apache/tools/ant/types PatternSet.java
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org