make cursor at retrieving Date Takens nullable
This commit is contained in:
parent
79aa2306be
commit
dddfea3b1e
|
@ -285,7 +285,7 @@ class MediaFetcher(val context: Context) {
|
|||
|
||||
val dateTakens = HashMap<String, Long>()
|
||||
val cursor = context.contentResolver.query(uri, projection, selection, selectionArgs, null)
|
||||
cursor.use {
|
||||
cursor?.use {
|
||||
if (cursor.moveToFirst()) {
|
||||
do {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue