You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/01/22 07:55:49 UTC
[httpcomponents-client] branch master updated: HTTPCLIENT-2198, Fixed NPE in TlsConfig.toString()
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/master by this push:
new 75e8dc6 HTTPCLIENT-2198, Fixed NPE in TlsConfig.toString()
75e8dc6 is described below
commit 75e8dc6f9bf8b2e80924bf6d0420790c20ad97fa
Author: Andrei Vasilev <59...@users.noreply.github.com>
AuthorDate: Fri Jan 21 10:53:14 2022 -0800
HTTPCLIENT-2198, Fixed NPE in TlsConfig.toString()
Replaced called to Arrays.asList() to Arrays.toString(), which allows for null argument.
---
.../src/main/java/org/apache/hc/client5/http/config/TlsConfig.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/config/TlsConfig.java b/httpclient5/src/main/java/org/apache/hc/client5/http/config/TlsConfig.java
index 00b7aa3..8aba28f 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/config/TlsConfig.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/config/TlsConfig.java
@@ -108,8 +108,8 @@ public class TlsConfig implements Cloneable {
final StringBuilder builder = new StringBuilder();
builder.append("[");
builder.append("handshakeTimeout=").append(handshakeTimeout);
- builder.append(", supportedProtocols=").append(Arrays.asList(supportedProtocols));
- builder.append(", supportedCipherSuites=").append(Arrays.asList(supportedCipherSuites));
+ builder.append(", supportedProtocols=").append(Arrays.toString(supportedProtocols));
+ builder.append(", supportedCipherSuites=").append(Arrays.toString(supportedCipherSuites));
builder.append(", httpVersionPolicy=").append(httpVersionPolicy);
builder.append("]");
return builder.toString();