Skip to content

Commit e1b3d4e

Browse files
author
lakscastro
committed
(#94) Fix NullPointerException
1 parent f0cc802 commit e1b3d4e

File tree

1 file changed

+1
-1
lines changed
  • android/src/main/kotlin/io/lakscastro/sharedstorage/storageaccessframework/lib

1 file changed

+1
-1
lines changed

android/src/main/kotlin/io/lakscastro/sharedstorage/storageaccessframework/lib/DocumentCommon.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ fun traverseDirectoryEntries(
215215
} else {
216216
false
217217
},
218-
type = data[DocumentsContract.Document.COLUMN_MIME_TYPE] as String,
218+
type = data[DocumentsContract.Document.COLUMN_MIME_TYPE] as String?,
219219
size = data[DocumentsContract.Document.COLUMN_SIZE] as Long?,
220220
lastModified = data[DocumentsContract.Document.COLUMN_LAST_MODIFIED] as Long?
221221
),

0 commit comments

Comments
 (0)