TeamAmaze / TeamAmaze/AmazeFileManager

Check for deleted files before paste operation

Open
#3,311 3 comments 0 reactions 1 assignee View on GitHub

@TranceLove is already working on this.

Since May 12, 2022.

Area-UIUX Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

We found a NullPointerException when pasting a deleted file in app, and the environment is as follows:

App version: v3.3.2
Android version: 6.0
Device: Nexux_5X

The steps to reproduce:
6_AmazeFileManager_NullPointerException.gif
The Crash log is as follows:

05-12 11:44:05.967 2017-2183/system_process W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@a16474c attribute=null, token = android.os.BinderProxy@990c863
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri android.support.v4.provider.DocumentFile.getUri()' on a null object reference
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at com.amaze.filemanager.utils.files.GenericCopyUtil.startCopy(GenericCopyUtil.java:163)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at com.amaze.filemanager.utils.files.GenericCopyUtil.copy(GenericCopyUtil.java:325)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at com.amaze.filemanager.asynchronous.services.CopyService$DoInBackground$Copy.copyFiles(CopyService.java:483)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at com.amaze.filemanager.asynchronous.services.CopyService$DoInBackground$Copy.execute(CopyService.java:387)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at com.amaze.filemanager.asynchronous.services.CopyService$DoInBackground.doInBackground(CopyService.java:260)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at com.amaze.filemanager.asynchronous.services.CopyService$DoInBackground.doInBackground(CopyService.java:224)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
05-12 11:44:05.973 12979-13006/com.amaze.filemanager W/System.err:     at java.lang.Thread.run(Thread.java:818)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.