Skip to content

Commit 46c99ec

Browse files
committed
Resolve the issue that nonProxyHost was null when toBuilder is called
1 parent 25c5420 commit 46c99ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http-clients/netty-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/ProxyConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ private BuilderImpl(ProxyConfiguration proxyConfiguration) {
271271
this.scheme = proxyConfiguration.scheme;
272272
this.host = proxyConfiguration.host;
273273
this.port = proxyConfiguration.port;
274-
this.nonProxyHosts = proxyConfiguration.nonProxyHosts;
274+
this.nonProxyHosts = proxyConfiguration.nonProxyHosts != null ?
275+
new HashSet<>(proxyConfiguration.nonProxyHosts) : null;
275276
this.username = proxyConfiguration.username;
276277
this.password = proxyConfiguration.password;
277278
}

0 commit comments

Comments
 (0)