TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.1k stars 1.54k forks source link

Crash reported by Abujarona #4094

Closed amaze-issue-automation[bot] closed 3 months ago

amaze-issue-automation[bot] commented 3 months ago

Issue explanation (write below this line)

Exception

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String androidx.documentfile.provider.DocumentFile.getName()' on a null object reference at com.amaze.filemanager.filesystem.HybridFile.getName(HybridFile.java:484) at com.amaze.filemanager.filesystem.HybridFileParcelable.getName(HybridFileParcelable.java:116) at com.amaze.filemanager.asynchronous.asynctasks.movecopy.PreparePasteTask$checkConflicts$1$1.onFileFound(PreparePasteTask.kt:184) at com.amaze.filemanager.utils.OTGUtil.getDocumentFiles(OTGUtil.kt:139) at com.amaze.filemanager.filesystem.HybridFile.forEachChildrenFile(HybridFile.java:1031) at com.amaze.filemanager.asynchronous.asynctasks.movecopy.PreparePasteTask$checkConflicts$1.invokeSuspend(PreparePasteTask.kt:178) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@44db97, Dispatchers.Default]


Reporter: Abujarona

VishnuSanal commented 3 months ago

dupe #3734