diff --git a/app/src/main/java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java b/app/src/main/java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java index 781afe05c..15cc476a6 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java +++ b/app/src/main/java/com/nextcloud/talk/utils/ssl/MagicTrustManager.java @@ -177,7 +177,7 @@ public class MagicTrustManager implements X509TrustManager { try { X509Certificate[] certificates = (X509Certificate[]) sslSession.getPeerCertificates(); - if (certificates.length > 0 && certificates[0] != null && isCertInTrustStore(certificates, s)) { + if (certificates.length > 0 && isCertInTrustStore(certificates, s)) { return true; } } catch (SSLPeerUnverifiedException e) {