提交 33573ca2 编写于 作者: K Kohsuke Kawaguchi

[FIXED HUDSON-3696] Contract violation. This shouldn't be null.

上级 834ca4d9
......@@ -46,6 +46,9 @@ Upcoming changes</a>
<li class=bug>
Fixed a pipe leak to child processes.
(<a href="http://issues.hudson-ci.org/browse/HUDSON-8244">issue 8244</a>)
<li class=bug>
Fixed an NPE in ComputerRetentionWork
(<a href="http://issues.hudson-ci.org/browse/HUDSON-3696">issue 3696</a>)
<li class=rfe>
Debian package init script now honors <tt>~/.profile</tt>.
<li class=rfe>
......
......@@ -445,7 +445,7 @@ public class SlaveComputer extends Computer {
public RetentionStrategy getRetentionStrategy() {
Slave n = getNode();
return n==null ? null : n.getRetentionStrategy();
return n==null ? RetentionStrategy.INSTANCE : n.getRetentionStrategy();
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册