HTTPCLIENT-2198, Fixed NPE in TlsConfig.toString()

Replaced called to Arrays.asList() to Arrays.toString(), which allows for null argument.
This commit is contained in:
Andrei Vasilev 2022-01-21 10:53:14 -08:00 committed by Oleg Kalnichevski
parent d4c0e961ab
commit 75e8dc6f9b
1 changed files with 2 additions and 2 deletions

View File

@ -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();