提交 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,7 +168,8 @@ public abstract class ProcessTreeKiller {
*/
private static final ProcessTreeKiller DEFAULT = new ProcessTreeKiller() {
public void kill(Process proc, Map<String, String> modelEnvVars) {
proc.destroy();
if (proc!=null)
proc.destroy();
// kill by model unsupported
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册