Skip to content

Commit

Permalink
add check sslKeystore
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Jun 19, 2024
1 parent e025dad commit 781f302
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ private MongoDatabase getDatabase(String dbName) {
if (client == null) {

SSLContext sslContext = null;
if (sslEnabled) {
if (sslEnabled && sslKeystorePathFile && !sslKeystorePathFile.isEmpty()) {
try {
// Init TrustManager to init SSL Context
KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
Expand Down

0 comments on commit 781f302

Please sign in to comment.