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

IndexOutOfBoundsException when deleting last account #87

Open
trustytrojan opened this issue Aug 6, 2024 · 0 comments
Open

IndexOutOfBoundsException when deleting last account #87

trustytrojan opened this issue Aug 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@trustytrojan
Copy link

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)
@zt64 zt64 added the bug Something isn't working label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants