summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Janz2012-12-09 10:19:23 (EST)
committerChristian Janz2012-12-09 10:19:23 (EST)
commitbd9a6b55320e1db7787cd88a83e74485a1ad6036 (patch)
tree73ce25e03e7ede27f0ae5e01f133958644f976fa
parent451c428570d3084341a5bce7f6ff96428b70ab2a (diff)
downloadorg.eclipse.mylyn.commons-bd9a6b55320e1db7787cd88a83e74485a1ad6036.zip
org.eclipse.mylyn.commons-bd9a6b55320e1db7787cd88a83e74485a1ad6036.tar.gz
org.eclipse.mylyn.commons-bd9a6b55320e1db7787cd88a83e74485a1ad6036.tar.bz2
NEW - bug 395851: NPE when authenticating at Hudson server via NTLMrefs/changes/23/9123/2
https://bugs.eclipse.org/bugs/show_bug.cgi?id=395851 Change-Id: I60acd3622f23d70e6dea0bf14f6892e1b0cfab37
-rw-r--r--org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/HttpUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/HttpUtil.java b/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/HttpUtil.java
index 65abfa2..d747236 100644
--- a/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/HttpUtil.java
+++ b/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/HttpUtil.java
@@ -67,6 +67,7 @@ import org.eclipse.mylyn.internal.commons.repositories.http.core.PollingSslProto
/**
* @author Steffen Pingel
* @author Shawn Minto
+ * @author Christian Janz
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class HttpUtil {
@@ -138,7 +139,7 @@ public class HttpUtil {
String host = NetUtil.getHost(url);
int port = NetUtil.getPort(url);
- NTCredentials ntlmCredentials = getNtCredentials(credentials, null);
+ NTCredentials ntlmCredentials = getNtCredentials(credentials, ""); //$NON-NLS-1$
if (ntlmCredentials != null) {
AuthScope authScopeNtlm = new AuthScope(host, port, AuthScope.ANY_REALM, AuthPolicy.NTLM);
client.getCredentialsProvider().setCredentials(authScopeNtlm, ntlmCredentials);