Skip to content

Commit

Permalink
target cannot be null here otherwise the earlier invocation of target…
Browse files Browse the repository at this point in the history
….getPort() would fail with NPE

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1435320 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
sebbASF committed Jan 18, 2013
1 parent 5bdd456 commit 0730d6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void process(final HttpRequest request, final HttpContext context)
}

final AuthState targetState = clientContext.getTargetAuthState();
if (target != null && targetState != null && targetState.getState() == AuthProtocolState.UNCHALLENGED) {
if (targetState != null && targetState.getState() == AuthProtocolState.UNCHALLENGED) {
final AuthScheme authScheme = authCache.get(target);
if (authScheme != null) {
doPreemptiveAuth(target, authScheme, targetState, credsProvider);
Expand Down

0 comments on commit 0730d6c

Please sign in to comment.