Skip to content

Commit

Permalink
[JENKINS-37031] Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Aug 5, 2016
1 parent 784e0b5 commit d54c886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/remoting/Engine.java
Expand Up @@ -251,8 +251,8 @@ public void run() {
host = con.getHeaderField("X-Jenkins-JNLP-Host"); // controlled by hudson.TcpSlaveAgentListener.hostName
if (host == null) host=url.getHost();
String names = con.getHeaderField("X-Jenkins-Agent-Protocols");
agentProtocolNames = new HashSet<String>();
if (names != null) {
agentProtocolNames = new HashSet<String>();
for (String name: names.split(",")) {
name = name.trim();
if (!name.isEmpty()) {
Expand Down

0 comments on commit d54c886

Please sign in to comment.