Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Janz2012-12-09 15:19:23 +0000
committerSteffen Pingel2012-12-10 09:51:46 +0000
commita16851562aff434fe3bc8aec1df0b1c289a7965a (patch)
tree2c84c0043146ca79576af8b30c58797e6d78acdb
parent6d0a527c5d975b46a10b521f9ad3c8ad47ad164a (diff)
downloadorg.eclipse.mylyn.commons-a16851562aff434fe3bc8aec1df0b1c289a7965a.tar.gz
org.eclipse.mylyn.commons-a16851562aff434fe3bc8aec1df0b1c289a7965a.tar.xz
org.eclipse.mylyn.commons-a16851562aff434fe3bc8aec1df0b1c289a7965a.zip
NEW - bug 395851: NPE when authenticating at Hudson server via NTLM
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 65abfa25..d7472368 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);

Back to the top