mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +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
6569c1e0cd
commit
21f14681e1
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
Reference in a new issue