From d2f10bc2907c37510b67617affec87e0e07b0c49 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sun, 25 Jul 2021 12:57:14 +0800 Subject: [PATCH] Fix warnings --- .../main/kotlin/com/nkming/nc_photos/SelfSignedCertManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/com/nkming/nc_photos/SelfSignedCertManager.kt b/android/app/src/main/kotlin/com/nkming/nc_photos/SelfSignedCertManager.kt index 1e5b8393..2269e790 100644 --- a/android/app/src/main/kotlin/com/nkming/nc_photos/SelfSignedCertManager.kt +++ b/android/app/src/main/kotlin/com/nkming/nc_photos/SelfSignedCertManager.kt @@ -35,7 +35,7 @@ class SelfSignedCertManager { fun readAllCerts(context: Context): List> { val products = ArrayList>() val certDir = openCertsDir(context) - val certFiles = certDir.listFiles() + val certFiles = certDir.listFiles()!! val factory = CertificateFactory.getInstance("X.509") for (f in certFiles) { if (f.name.endsWith(".json")) {