contract says can't return null.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4238 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-08-12 23:22:19 +00:00
1 parent 04edfdf6db
commit c2afe7d559
1 file changed
+2 -1
+2 -1
View File
@@ -218,7 +218,8 @@ public final class Slave implements Node, Serializable {
public ClockDifference getClockDifference() throws IOException, InterruptedException {
VirtualChannel channel = getComputer().getChannel();
if(channel==null) return null; // can't check
if(channel==null)
throw new IOException(getNodeName()+" is offline");
long startTime = System.currentTimeMillis();
long slaveTime = channel.call(new Callable<Long,RuntimeException>() {