Cannot access local Storage And Change downloads folder #158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce
Go into settings
Go Into content
Tap Folder For Downloads
Or
open local storage section
Expected behavior
Able to see downloaded files and change directory
Actual behavior
In the case of opening the local downloads section in the app it comes up with a error (without coming up with a black screen the app does not crash for this one) With the statment "Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference"
If I go and attempt to change the downloads directory the app will go into a back screen and come up a bunch of text
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference at org.koitharu.kotatsu.main.MainModuleKt$mainModule$1.invoke(Unknown Source:39) at kotlin.collections.CollectionsKtReversedViewsKt.filterInPlace$CollectionsKtMutableCollectionsKt(Unknown Source:15) at org.koitharu.kotatsu.local.data.LocalStorageManager.access$getConfiguredStorageDirs(Unknown Source:5) at org.koitharu.kotatsu.local.data.LocalStorageManager$getReadableDirs$2.invoke(Unknown Source:16) at org.koitharu.kotatsu.local.data.LocalStorageManager$getReadableDirs$2.invoke(Unknown Source:7) at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Unknown Source:3) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8) at kotlinx.coroutines.DispatchedTask.run(Unknown Source:4) at kotlinx.coroutines.internal.LimitedDispatcher.run(Unknown Source:12) at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(Unknown Source:0) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:6)Which is the error message
Kotatsu version
3.2 (also happened on 3.0)
Android version
Android 11
Device
Galaxy A32
Other details
No response
Acknowledgements
Should be fixed, reopen if needed