ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r506547 - /ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java
Date Mon, 12 Feb 2007 17:42:33 GMT
Author: peterreilly
Date: Mon Feb 12 09:42:32 2007
New Revision: 506547

URL: http://svn.apache.org/viewvc?view=rev&rev=506547
Log:
Bugzilla: 41594 copy setnewproperty sanity protection to setproperty

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java?view=diff&rev=506547&r1=506546&r2=506547
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java Mon Feb 12 09:42:32 2007
@@ -327,7 +327,9 @@
             project.log("Setting project property: " + name + " -> "
                 + value, Project.MSG_DEBUG);
         }
-        properties.put(name, value);
+        if (name != null && value != null) {
+            properties.put(name, value);
+        }
         return true;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message