cstamas commented on code in PR #2373:
URL: https://github.com/apache/maven-resolver/pull/2373#discussion_r4728761269
##########
maven-resolver-transport-jetty/src/main/java/org/eclipse/aether/transport/jetty/JettyTransporter.java:
##########
@@ -670,10 +676,13 @@ private HttpClient createClient() throws RuntimeException
{
httpClient.getProxyConfiguration().addProxy(proxy);
try (AuthenticationContext proxyAuthContext =
AuthenticationContext.forProxy(session, repository)) {
- if (proxyAuthContext != null) {
- String username =
proxyAuthContext.get(AuthenticationContext.USERNAME);
+ String username =
+ proxyAuthContext != null ?
proxyAuthContext.get(AuthenticationContext.USERNAME) : null;
+ if (username != null) {
Review Comment:
Fixed in 77766347: the proxy block now uses the same nested `if` structure
as the server block (and the JDK transport). Behavior is unchanged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]