mirror of
https://github.com/google/nomulus
synced 2026-01-04 20:24:22 +00:00
Fix null pointer excpetion bug (#407)
The factory method passes a null trustedCertificates instead of an empty list.
This commit is contained in:
@@ -106,7 +106,7 @@ public class SslClientInitializer<C extends Channel> extends ChannelInitializer<
|
||||
SslContextBuilder.forClient()
|
||||
.sslProvider(sslProvider)
|
||||
.trustManager(
|
||||
trustedCertificates.isEmpty()
|
||||
trustedCertificates == null || trustedCertificates.isEmpty()
|
||||
? null
|
||||
: trustedCertificates.toArray(new X509Certificate[0]));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user