From 55b2f2656d92674b3d7a8e986669e3d3e38a4206 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 8 Apr 2021 08:56:58 +0200 Subject: [PATCH] fix HTTP up/download for users that dont trust system CAs --- .../eu/siacs/conversations/services/MemorizingTrustManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/MemorizingTrustManager.java b/src/main/java/eu/siacs/conversations/services/MemorizingTrustManager.java index 9f2a5de36..e94c1c5c0 100644 --- a/src/main/java/eu/siacs/conversations/services/MemorizingTrustManager.java +++ b/src/main/java/eu/siacs/conversations/services/MemorizingTrustManager.java @@ -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) {