提交 0d4b6136 编写于 作者: K kohsuke

fixed NPE.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1562 71c3de6d-444a-0410-be80-ed276b4c234a
上级 3f6e336e
......@@ -237,7 +237,8 @@ public final class Slave implements Node, Serializable {
proc.getInputStream(),proc.getOutputStream(), launchLog);
channel.addListener(new Listener() {
public void onClosed(Channel c,IOException cause) {
cause.printStackTrace(listener.error("slave agent was terminated"));
if(cause!=null)
cause.printStackTrace(listener.error("slave agent was terminated"));
channel = null;
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册