TeamAmaze / TeamAmaze/AmazeFileManager

`IndexOutOfBoundsException` on `HiddenAdapter#onBindViewHolder`

Open
#3,320 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

From-telegram 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: Panel de navegación de ejemplo
  • Package: com.amaze.filemanager
  • Version: 3.7.0
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Nokia/Drax_00WW/DRX:11/RKQ1.200928.002/00WW_2_280:user/release-keys 11 - 30
  • Device: DRX
  • Model: Nokia 1.3
  • Product: Drax_00WW
Crash log

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
 at java.util.ArrayList.get(ArrayList.java:437)
 at com.amaze.filemanager.adapters.HiddenAdapter.onBindViewHolder$lambda-0(HiddenAdapter.kt:84)
 at com.amaze.filemanager.adapters.HiddenAdapter.$r8$lambda$5hVZ8hVZfXGiw5-F9ROKs9qzC4w(Unknown Source:0)
 at com.amaze.filemanager.adapters.HiddenAdapter$$ExternalSyntheticLambda1.onClick(Unknown Source:6)
 at android.view.View.performClick(View.java:7448)
 at android.view.View.performClickInternal(View.java:7425)
 at android.view.View.access$3600(View.java:810)
 at android.view.View$PerformClick.run(View.java:28309)
 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:7711)
 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)


Reporter: Nasher_Currao

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.

Research direction

Start at HiddenAdapter.kt:84 and trace the click handling in HiddenAdapter#onBindViewHolder that appears in the crash stack. Reproduce the reported UI action if possible, then verify that the same interaction no longer raises IndexOutOfBoundsException for the reported list size.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.