ignore files with null name

This commit is contained in:
tibbi 2018-04-24 14:34:51 +02:00
parent d4f81d3437
commit f963274942

View file

@ -220,7 +220,7 @@ class MediaFetcher(val context: Context) {
break break
} }
val filename = file.name val filename = file.name ?: continue
val isImage = filename.isImageFast() val isImage = filename.isImageFast()
val isVideo = if (isImage) false else filename.isVideoFast() val isVideo = if (isImage) false else filename.isVideoFast()
val isGif = if (isImage || isVideo) false else filename.isGif() val isGif = if (isImage || isVideo) false else filename.isGif()