additional null check

This commit is contained in:
Eugene Zhuravlev
2012-05-15 22:47:19 +02:00
parent 78ba93f48c
commit 9d8ae0a8fe
@@ -335,7 +335,10 @@ public class ParametersList implements Cloneable {
if (application != null) {
final PathMacros pathMacros = PathMacros.getInstance();
for (String name : pathMacros.getUserMacroNames()) {
myMacroMap.put("${" + name + "}", pathMacros.getValue(name));
final String value = pathMacros.getValue(name);
if (value != null) {
myMacroMap.put("${" + name + "}", value);
}
}
final Map<String, String> env = EnvironmentUtil.getEnviromentProperties();
for (String name : env.keySet()) {