diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index 237c6c6ec..255ec4ecd 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -183,9 +183,6 @@ class HttpReadAloudService : BaseReadAloudService(), private fun removeCacheFile() { FileUtils.listDirsAndFiles(speakFilePath())?.forEach { - if (it == null) { - return@forEach - } if (Regex(""".+\.mp3$""").matches(it.name)) { //mp3缓存文件 val reg = """^${MD5Utils.md5Encode16(textChapter!!.title)}_[a-z0-9]{16}\.mp3$""".toRegex()