Skip to content

Commit d9e2bce

Browse files
committed
polish
1 parent 21d43be commit d9e2bce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/src/main/java/io/split/client/SplitFactoryImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,11 @@ private static SSLContext buildSSLContext(SplitClientConfig config) throws IOExc
614614
_log.warn("Ignoring p12 mTLS config and switching to default context");
615615
sslContext = SSLContexts.createSystemDefault();
616616
} finally {
617-
keystoreStream.close();
617+
try {
618+
keystoreStream.close();
619+
} catch (NullPointerException e) {
620+
_log.error("Exception caught while closing file stream handler: ", e);
621+
}
618622
}
619623
} else {
620624
sslContext = SSLContexts.createSystemDefault();

0 commit comments

Comments
 (0)