fix HTTP up/download for users that dont trust system CAs

This commit is contained in:
Daniel Gultsch 2021-04-08 08:56:58 +02:00
parent fb681dfd60
commit 55b2f2656d
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ public class MemorizingTrustManager {
private X509Certificate[] getAcceptedIssuers() { private X509Certificate[] getAcceptedIssuers() {
LOGGER.log(Level.FINE, "getAcceptedIssuers()"); LOGGER.log(Level.FINE, "getAcceptedIssuers()");
return defaultTrustManager.getAcceptedIssuers(); return defaultTrustManager == null ? new X509Certificate[0] : defaultTrustManager.getAcceptedIssuers();
} }
private int createDecisionId(MTMDecision d) { private int createDecisionId(MTMDecision d) {