TeamAmaze / TeamAmaze/AmazeFileManager
Crash on goBack
Open
Nobody has claimed this yet.
From-Email
Issue-Bug
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
Issue explanation (write below this line)
Exception
- App Name: Amaze Dateimanager
- Package: com.amaze.filemanager
- Version: 3.6.3
- User Action: UI Error
- Request: Application crash
- OS: Linux Android 11 - 30
- Device: QKS_sprout
- Model: Nokia X20
- Product: Quicksilver_00EEA
Crash log
java.lang.StringIndexOutOfBoundsException: String index out of range: -9
at java.lang.String.substring(String.java:2064)
at com.amaze.filemanager.ui.fragments.MainFragment.goBack(MainFragment.java:1420)
at com.amaze.filemanager.ui.activities.MainActivity.lambda$onBackPressed$7(MainActivity.java:846)
at com.amaze.filemanager.ui.activities.-$$Lambda$MainActivity$s1oLPR0exawliqRtQ1Hqrb8y3_o.apply(Unknown Source:2)
at com.amaze.filemanager.ui.activities.MainActivity.executeWithMainFragment(MainActivity.java:2321)
at com.amaze.filemanager.ui.activities.MainActivity.executeWithMainFragment(MainActivity.java:2313)
at com.amaze.filemanager.ui.activities.MainActivity.onBackPressed(MainActivity.java:844)
at android.app.Activity.onKeyUp(Activity.java:3811)
at android.view.KeyEvent.dispatch(KeyEvent.java:2907)
at android.app.Activity.dispatchKeyEvent(Activity.java:4117)
at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.java:122)
at androidx.core.view.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:84)
at androidx.core.app.ComponentActivity.dispatchKeyEvent(ComponentActivity.java:140)
at androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:569)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:3054)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:390)
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:5955)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5823)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5318)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5375)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5341)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5493)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5349)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5550)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5322)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5375)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5341)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5349)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5322)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5375)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5341)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5526)
at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:5684)
at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:3180)
at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:2722)
at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:2713)
at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:3157)
at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:143)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:335)
at android.os.Looper.loop(Looper.java:183)
at android.app.ActivityThread.main(ActivityThread.java:7721)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
--
j.dobias@gmx.at
mit K-9 Mail gesendet.
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 MainFragment.java:1420 in goBack(), reached from MainActivity.onBackPressed(), and inspect the substring operation that raises StringIndexOutOfBoundsException with index -9. Reproduce the reported back-navigation action if possible; done means pressing back through the affected state no longer crashes the application.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100