Skip to content

java.lang.IndexOutOfBoundsException: Index 5 out of bounds for length 5 #304

@MonkeyPilot

Description

@MonkeyPilot

v0.17.10 / Android 14

The app crashed and this error was constantly stuck at the top of the log as if it were pinned. At first, I mistakenly thought the error just appeared periodically without causing the application to crash.

--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: main
E/AndroidRuntime: Process: com.github.dyhkwong.sagernet, PID: 21018
E/AndroidRuntime: java.lang.IndexOutOfBoundsException: Index 5 out of bounds for length 5
E/AndroidRuntime: 	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
E/AndroidRuntime: 	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
E/AndroidRuntime: 	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
E/AndroidRuntime: 	at java.util.Objects.checkIndex(Objects.java:391)
E/AndroidRuntime: 	at java.util.ArrayList.remove(ArrayList.java:558)
E/AndroidRuntime: 	at io.nekohasekai.sagernet.ui.ConfigurationFragment$GroupFragment$ConfigurationAdapter.onRemoved$lambda$0(r8-map-id-26ec3a34d3d0c1ee7adfeab616059688b7360cbe6c2e72bbe1bcb34d9014146c:3)
E/AndroidRuntime: 	at io.nekohasekai.sagernet.ui.ConfigurationFragment$GroupFragment$ConfigurationAdapter.$r8$lambda$HdKjeJYgsYS-e7_seQ5cxo5WYIQ(r8-map-id-26ec3a34d3d0c1ee7adfeab616059688b7360cbe6c2e72bbe1bcb34d9014146c:1)
E/AndroidRuntime: 	at io.nekohasekai.sagernet.ui.ConfigurationFragment$GroupFragment$ConfigurationAdapter$$ExternalSyntheticLambda4.run(r8-map-id-26ec3a34d3d0c1ee7adfeab616059688b7360cbe6c2e72bbe1bcb34d9014146c:7)
E/AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:958)
E/AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:243)
E/AndroidRuntime: 	at android.os.Looper.loop(Looper.java:338)
E/AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8470)
E/AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
E/AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1064)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions