Browse Source

Bugzilla 42334: System properties may be none string objects

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@535312 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
b29f5e1567
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/Project.java

+ 3
- 1
src/main/org/apache/tools/ant/Project.java View File

@@ -910,7 +910,9 @@ public class Project implements ResourceFactory {
while (e.hasMoreElements()) {
String propertyName = (String) e.nextElement();
String value = systemP.getProperty(propertyName);
this.setPropertyInternal(propertyName, value);
if (value != null) {
this.setPropertyInternal(propertyName, value);
}
}
}



Loading…
Cancel
Save