Skip to content
Permalink
Browse files

[FIX JENKINS-40710, JENKINS-41513] JnlpAgentEndpointResolver - Add nu…

…ll check, use correct header for map key (#140)
  • Loading branch information...
cgag authored and oleg-nenashev committed Jan 31, 2017
1 parent 02b5964 commit 813489e5bc27d4c41601e80847c4d738bafd8947
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/org/jenkinsci/remoting/engine/JnlpAgentEndpointResolver.java
@@ -428,8 +428,8 @@ static boolean inNoProxyEnvVar(String host) {
Map<String, List<String>> headerFields = connection.getHeaderFields();
for (String headerName : headerNames) {
for (String headerField : headerFields.keySet()) {
if (headerField.equalsIgnoreCase(headerName)) {
return headerFields.get(headerName);
if (headerField != null && headerField.equalsIgnoreCase(headerName)) {
return headerFields.get(headerField);
}
}
}

0 comments on commit 813489e

Please sign in to comment.
You can’t perform that action at this time.