Skip to content

Commit

Permalink
SpotBugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jul 13, 2023
1 parent 88ae5ab commit 39c760a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/jvnet/hudson/test/InboundAgentRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import hudson.model.Descriptor;
import hudson.model.Node;
import hudson.model.Slave;
import hudson.remoting.VirtualChannel;
import hudson.slaves.DumbSlave;
import hudson.slaves.JNLPLauncher;
import hudson.slaves.RetentionStrategy;
Expand Down Expand Up @@ -471,7 +472,9 @@ static void wait(JenkinsRule r, String name, Map<String, Level> loggers) throws
}
r.waitOnline((Slave) node);
if (!loggers.isEmpty()) {
node.getChannel().call(new JenkinsRule.RemoteLogDumper(null, loggers, false));
VirtualChannel channel = node.getChannel();
assert channel != null;
channel.call(new JenkinsRule.RemoteLogDumper(null, loggers, false));
}
}
}
Expand Down

0 comments on commit 39c760a

Please sign in to comment.