Skip to content

Commit

Permalink
[FIXED JENKINS-27678] Fix NullPointerException when nonProxyHost is n…
Browse files Browse the repository at this point in the history
…ot set
  • Loading branch information
mathieu-pousse committed Mar 31, 2015
1 parent cf7a86b commit 31b328e
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -148,6 +148,9 @@ private void addProxySelectorIfNecessary(DefaultRepositorySystemSession reposito
}

public String convertHudsonNonProxyToJavaNonProxy(String hudsonNonProxy) {
if (StringUtils.isEmpty(hudsonNonProxy)) {
return "";
}
String[] nonProxyArray = hudsonNonProxy.split("[ \t\n,|]+");
String nonProxyOneLine = StringUtils.join(nonProxyArray, '|');
return nonProxyOneLine;
Expand Down

0 comments on commit 31b328e

Please sign in to comment.