Commit 7f9673cf authored by Aayush Gupta's avatar Aayush Gupta
Browse files

XAPK: XAPKInstallUtils: Use safe calls on nullable parentFile

- Compile-time warnings observed

w: /builds/e/apps/apps/app/src/main/java/foundation/e/apps/XAPK/XApkInstallUtils.kt: (144, 22): Unsafe use of a nullable receiver of type File?
w: /builds/e/apps/apps/app/src/main/java/foundation/e/apps/XAPK/XApkInstallUtils.kt: (145, 21): Unsafe use of a nullable receiver of type File?
Signed-off-by: Aayush Gupta's avatarAayush Gupta <>
parent 2522506d
......@@ -141,8 +141,8 @@ object XApkInstallUtils {
for (item in xApkManifest.expansionList!!) {
val inputStream = getZipFileInputStream(zipFile, item.xFile, true)!!
val obbFile = File(FsUtils.getStorageDir(), item.installPath)
if (!obbFile.parentFile.exists()) {
if (obbFile.parentFile?.exists() == false) {
obbSuccess = FileWriterUtils.writeFileFromIS(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment