Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringIndexOutOfBoundsException on HybridFile#getParent #3767

Closed
amaze-issue-automation bot opened this issue Mar 26, 2023 · 1 comment · Fixed by #3971
Closed

StringIndexOutOfBoundsException on HybridFile#getParent #3767

amaze-issue-automation bot opened this issue Mar 26, 2023 · 1 comment · Fixed by #3971
Assignees
Labels
From-Email This is from an email, probably lacking replication info Issue-Bug Related unexpected behavior or something worth investigating. Issue-Easy (good first issue) Beginners welcome! Issues with relative low difficulty.
Milestone

Comments

@amaze-issue-automation
Copy link

Issue explanation (write below this line)

Exception

  • App Name: Amaze File Manager
  • Package: com.amaze.filemanager
  • Version: 3.8.4
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux
    OnePlus/GN2200/OP515AL1:12/RKQ1.211119.001/d7acd9-22c7e-1296c3:user/release-keys
    12 - 31
  • Device: OP515AL1
  • Model: GN2200
  • Product: GN2200
Crash log

java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 74
at java.lang.String.checkBoundsBeginEnd(String.java:3942)
at java.lang.String.substring(String.java:2467)
at
com.amaze.filemanager.filesystem.HybridFile.getParent(HybridFile.java:558)
at
com.amaze.filemanager.ui.fragments.MainFragment.goBack(MainFragment.java:1090)
at
com.amaze.filemanager.ui.activities.MainActivity.lambda$onBackPressed$6(MainActivity.java:897)
at
com.amaze.filemanager.ui.activities.MainActivity.$r8$lambda$fKbQXJTjmE3tEXFhvzq2Q8y2c_E(Unknown
Source:0)
at
com.amaze.filemanager.ui.activities.MainActivity$$ExternalSyntheticLambda6.apply(Unknown
Source:2)
at
com.amaze.filemanager.ui.activities.MainActivity.executeWithMainFragment(MainActivity.java:2506)
at
com.amaze.filemanager.ui.activities.MainActivity.executeWithMainFragment(MainActivity.java:2498)
at
com.amaze.filemanager.ui.activities.MainActivity.onBackPressed(MainActivity.java:895)
at android.app.Activity.onKeyUp(Activity.java:3879)
at android.view.KeyEvent.dispatch(KeyEvent.java:2878)
at android.app.Activity.dispatchKeyEvent(Activity.java:4232)
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:599)
at
androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at
androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:3090)
at
com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:442)
at
android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:6680)
at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6537)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6010)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6072)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6033)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6207)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6041)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6264)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6014)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6072)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6033)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6041)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6014)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6072)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6033)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6240)
at
android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:6398)
at
android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:3284)
at
android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:2840)
at
android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:2831)
at
android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:3261)
at
android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:154)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:339)
at android.os.Looper.loopOnce(Looper.java:184)
at android.os.Looper.loop(Looper.java:349)
at android.app.ActivityThread.main(ActivityThread.java:8241)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)


@amaze-issue-automation amaze-issue-automation bot added the From-Email This is from an email, probably lacking replication info label Mar 26, 2023
@VishnuSanal VishnuSanal changed the title Crash reported by Cesar StringIndexOutOfBoundsException on HybridFile#getParent Mar 26, 2023
@VishnuSanal VishnuSanal added the Issue-Bug Related unexpected behavior or something worth investigating. label Mar 26, 2023
@VishnuSanal VishnuSanal added the Issue-Easy (good first issue) Beginners welcome! Issues with relative low difficulty. label Jun 11, 2023
@seelchen
Copy link
Contributor

Hi, I would like to work on this issue :)

@VishalNehra VishalNehra added this to the v4.0 milestone Oct 30, 2023
VishalNehra added a commit that referenced this issue Oct 30, 2023
Bug fix: #3767 `StringIndexOutOfBoundsException` on `HybridFile#getParent`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
From-Email This is from an email, probably lacking replication info Issue-Bug Related unexpected behavior or something worth investigating. Issue-Easy (good first issue) Beginners welcome! Issues with relative low difficulty.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants