aliucord-plugins
aliucord-plugins copied to clipboard
`IndexOutOfBoundsException` when deleting last account
This happened when I deleted the last account in the list.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at accountswitcher.settings.AccountAdapter.onRemove(AccountAdapter.kt:83)
at accountswitcher.settings.AccountViewHolder.lambda-13$lambda-12(AccountViewHolder.kt:89)
at accountswitcher.settings.AccountViewHolder.$r8$lambda$Q22Vpd3UuxKRpDEt9-gbVzsnn-4(Unknown Source:0)
at accountswitcher.settings.AccountViewHolder$$ExternalSyntheticLambda1.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:7792)
at android.view.View.performClickInternal(View.java:7769)
at android.view.View.access$3800(View.java:910)
at android.view.View$PerformClick.run(View.java:30218)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)