提交 bc52cae1 编写于 作者: M Marat Radchenko

[JENKINS-59580] Fix WindowsOSProcess.getEnvironmentVariables returning null

OSProcess.getEnvironmentVariables javadoc clearly states that method will return empty map if obtaining of environment variables failed.
上级 dd047e5d
......@@ -581,7 +581,7 @@ public abstract class ProcessTree implements Iterable<OSProcess>, IProcessTree,
LOGGER.log(FINEST, "Failed to get the environment variables of process with pid=" + p.getPid(), e);
}
}
return null;
return env;
}
private synchronized EnvVars getEnvironmentVariables2() throws WindowsOSProcessException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册