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:
parent
d4c0e961ab
commit
75e8dc6f9b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue