Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69040d9d authored by tibbi's avatar tibbi
Browse files

add a null check at getting OTG files

parent b3faefb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.13.8'
        propVersionName = '3.13.9'
        kotlin_version = '1.2.21'
        support_libs = '27.0.2'
    }
+4 −1
Original line number Diff line number Diff line
@@ -318,7 +318,10 @@ fun Context.getOTGItems(path: String, countHiddenItems: Boolean, getProperFileSi
            continue
        }

        rootUri = rootUri.findFile(part)
        val file = rootUri.findFile(part)
        if (file != null) {
            rootUri = file
        }
    }

    val files = rootUri.listFiles()