提交 6d2a15ef 编写于 作者: M martinficker

fix: createPath failed for offline Slaves

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14796 71c3de6d-444a-0410-be80-ed276b4c234a
上级 23f7980b
......@@ -288,7 +288,9 @@ public abstract class Slave implements Node, Serializable {
}
public FilePath createPath(String absolutePath) {
VirtualChannel ch = getComputer().getChannel();
SlaveComputer computer = getComputer();
if (computer==null) return null; // offline
VirtualChannel ch = computer.getChannel();
if(ch==null) return null; // offline
return new FilePath(ch,absolutePath);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册