TeamAmaze / TeamAmaze/AmazeFileManager
Crash while copying a file
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
Issue explanation (write below this line)
Crash while copying a file
Exception
- User Action: UI Error
- Request: Application crash
- Version: 3.5.3
- OS: Linux Android 11 - 30
- Device: vince
- Model: Redmi 5 Plus
- Product: evolution_vince
Crash log
java.lang.NullPointerException: Attempt to read from field 'com.amaze.filemanager.ui.views.DisablableViewPager com.amaze.filemanager.ui.fragments.TabFragment.mViewPager' on a null object reference
at com.amaze.filemanager.ui.activities.MainActivity.setPagingEnabled(MainActivity.java:1334)
at com.amaze.filemanager.ui.fragments.MainFragment$3.onDestroyActionMode(MainFragment.java:718)
at androidx.appcompat.app.AppCompatDelegateImpl$ActionModeCallbackWrapperV9.onDestroyActionMode(AppCompatDelegateImpl.java:2457)
at androidx.appcompat.view.StandaloneActionMode.finish(StandaloneActionMode.java:111)
at androidx.appcompat.widget.ActionBarContextView$1.onClick(ActionBarContextView.java:173)
at android.view.View.performClick(View.java:7455)
at android.view.View.performClickInternal(View.java:7432)
at android.view.View.access$3600(View.java:810)
at android.view.View$PerformClick.run(View.java:28313)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7661)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:594)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Raised by: vishal_nehra
Reporter: VegitoSama
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 with MainActivity.java:1334 and MainFragment.java:718, following the action-mode cleanup triggered after copying a file. Reproduce the file-copy flow on Android 11 if possible and inspect the TabFragment.mViewPager lifecycle; done means the same action completes without an application crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100