diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MimeTypesActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MimeTypesActivity.kt index da9a3638..2b2031c0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MimeTypesActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MimeTypesActivity.kt @@ -189,8 +189,12 @@ class MimeTypesActivity : SimpleActivity(), ItemOperationsListener { return@queryCursor } - val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA) val size = cursor.getLongValue(MediaStore.Files.FileColumns.SIZE) + if (size == 0L) { + return@queryCursor + } + + val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA) val lastModified = cursor.getLongValue(MediaStore.Files.FileColumns.DATE_MODIFIED) * 1000 val mimetype = fullMimetype.substringBefore("/")