From b29f5e1567af5b4bc6744a12d9c3465c6ec63890 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 4 May 2007 16:14:49 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/Project.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/Project.java b/src/main/org/apache/tools/ant/Project.java index d56f36d15..ef89ffc89 100644 --- a/src/main/org/apache/tools/ant/Project.java +++ b/src/main/org/apache/tools/ant/Project.java @@ -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); + } } }