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

View file

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