1
0
Fork 1

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

(cherry picked from commit 55b2f2656d92674b3d7a8e986669e3d3e38a4206)
This commit is contained in:
Daniel Gultsch 2021-04-08 08:56:58 +02:00 committed by Christian Schneppe
parent 200ed799c4
commit d3c61cd81c

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) {