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