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

This commit is contained in:
Kohsuke Kawaguchi committed 2010-12-14 11:36:04 -08:00
1 parent 834ca4d97b
commit 33573ca2bd
2 files changed
+4 -1

No files matched your search

@@ -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();
}
/**