Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f421a0

Browse files
dwickernslandelle
authored andcommitted
Fix NullPointerException in NTLM auth (AsyncHttpClient#1386)
1 parent06c58c6 commit4f421a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎client/src/main/java/org/asynchttpclient/ntlm/NtlmEngine.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ private static String stripDotSuffix(final String value) {
150150

151151
/** Convert host to standard form */
152152
privatestaticStringconvertHost(finalStringhost) {
153-
returnstripDotSuffix(host).toUpperCase();
153+
returnhost !=null ?stripDotSuffix(host).toUpperCase() :null;
154154
}
155155

156156
/** Convert domain to standard form */
157157
privatestaticStringconvertDomain(finalStringdomain) {
158-
returnstripDotSuffix(domain).toUpperCase();
158+
returndomain !=null ?stripDotSuffix(domain).toUpperCase() :null;
159159
}
160160

161161
privatestaticintreadULong(finalbyte[]src,finalintindex)throwsNtlmEngineException {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp