Skip to content

Commit 8ebcd9f

Browse files
aratnotolbertam
authored andcommitted
Fix DefaultSslEngineFactory missing null check on close
patch by Abe Ratnofsky; reviewed by Andy Tolbert and Chris Lohfink for CASSANDRA-20001
1 parent 72c729b commit 8ebcd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/datastax/oss/driver/internal/core/ssl/DefaultSslEngineFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,6 @@ private ReloadingKeyManagerFactory buildReloadingKeyManagerFactory(DriverExecuti
164164

165165
@Override
166166
public void close() throws Exception {
167-
kmf.close();
167+
if (kmf != null) kmf.close();
168168
}
169169
}

0 commit comments

Comments
 (0)