提交 543fe070 编写于 作者: M mindless

[FIXED HUDSON-3049] avoid NPE in DEFAULT ProcessTreeKiller


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15369 71c3de6d-444a-0410-be80-ed276b4c234a
上级 354bf471
...@@ -168,6 +168,7 @@ public abstract class ProcessTreeKiller { ...@@ -168,6 +168,7 @@ public abstract class ProcessTreeKiller {
*/ */
private static final ProcessTreeKiller DEFAULT = new ProcessTreeKiller() { private static final ProcessTreeKiller DEFAULT = new ProcessTreeKiller() {
public void kill(Process proc, Map<String, String> modelEnvVars) { public void kill(Process proc, Map<String, String> modelEnvVars) {
if (proc!=null)
proc.destroy(); proc.destroy();
// kill by model unsupported // kill by model unsupported
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册