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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to