mirror of
https://github.com/google/nomulus.git
synced 2025-07-10 13:13:28 +02:00
Fix null pointer excpetion bug (#407)
The factory method passes a null trustedCertificates instead of an empty list.
This commit is contained in:
parent
db7fcf6c38
commit
9853f23d94
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ public class SslClientInitializer<C extends Channel> extends ChannelInitializer<
|
||||||
SslContextBuilder.forClient()
|
SslContextBuilder.forClient()
|
||||||
.sslProvider(sslProvider)
|
.sslProvider(sslProvider)
|
||||||
.trustManager(
|
.trustManager(
|
||||||
trustedCertificates.isEmpty()
|
trustedCertificates == null || trustedCertificates.isEmpty()
|
||||||
? null
|
? null
|
||||||
: trustedCertificates.toArray(new X509Certificate[0]));
|
: trustedCertificates.toArray(new X509Certificate[0]));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue