Skip to content

Commit

Permalink
chore: use Objects.nonNull
Browse files Browse the repository at this point in the history
Co-authored-by: Ayesh Almeida <[email protected]>
  • Loading branch information
DaAlbrecht and ayeshLK authored Oct 25, 2024
1 parent 393d95e commit 39022ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/main/java/io/ballerina/lib/ldap/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static BError initLdapConnection(BObject ldapClient, BMap<BString, Object
BMap<BString, Object> secureSocketConfig = (BMap<BString, Object>) config
.getMapValue(CLIENT_SECURE_SOCKET);
try {
if (secureSocketConfig != null && isClientSecurityConfigured(secureSocketConfig)) {
if (Objects.nonNull(secureSocketConfig) && isClientSecurityConfigured(secureSocketConfig)) {
SSLConfig sslConfig = populateSSLConfig(secureSocketConfig);
AggregateTrustManager trustManager = buildAggregatedTrustManager(sslConfig);

Expand Down

0 comments on commit 39022ec

Please sign in to comment.