You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by mb...@apache.org on 2010/02/25 00:53:34 UTC
svn commit: r916044 -
/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java
Author: mbenson
Date: Wed Feb 24 23:53:34 2010
New Revision: 916044
URL: http://svn.apache.org/viewvc?rev=916044&view=rev
Log:
null guard
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java?rev=916044&r1=916043&r2=916044&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java Wed Feb 24 23:53:34 2010
@@ -279,7 +279,7 @@
*/
public void setPrefix(String prefix) {
this.prefix = prefix;
- if (!prefix.endsWith(".")) {
+ if (prefix != null && !prefix.endsWith(".")) {
this.prefix += ".";
}
}