TeamAmaze / TeamAmaze/AmazeFileManager
USB OTG root not set
Open
Nobody has claimed this yet.
Area-USB
From-Email
Issue-Bug
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
Issue explanation
claro
Exception
- User Action: UI Error
- Request: Application crash
- Version: 3.5.2
- OS: Linux Android 4.4.4 - 19
- Device: TR10RS1_1
- Model: TR10RS1
- Product: TR10RS1_i_Buddie
Crash log
java.lang.RuntimeException: An error occured while executing
doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NullPointerException: USB OTG root not set!
at com.amaze.filemanager.utils.OTGUtil.getDocumentFiles(OTGUtil.java:80)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.listOtg(LoadFilesListTask.java:490)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.doInBackground(LoadFilesListTask.java:184)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.doInBackground(LoadFilesListTask.java:67)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 3 more
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at OTGUtil.getDocumentFiles in OTGUtil.java and trace its caller, LoadFilesListTask.listOtg, using the supplied stack trace and Android 4.4.4 context. Investigate how the USB OTG root is initialized; done means listing OTG files no longer causes the reported application crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100