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

Crash when using autoselection on filtered duplicates #367

Closed
d4rken opened this Issue Apr 14, 2016 · 0 comments

Comments

1 participant
@d4rken
Owner

d4rken commented Apr 14, 2016

Steps to reproduce:

  • Scan duplicates
  • Filter for some string
  • Press the red FAB to select items
  • Press delete within the actionmode-menu
  • Crash (even before we reach confirmation)
FATAL EXCEPTION: main
Process: eu.thedarken.sdm, PID: 13215
java.lang.ArrayIndexOutOfBoundsException: length=40; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at eu.thedarken.sdm.ui.recyclerview.ListDataRecyclerViewAdapter.getItem(ListDataRecyclerViewAdapter.java:31)
at eu.thedarken.sdm.duplicates.DuplicatesAdapter.getItem(DuplicatesAdapter.java:204)
at eu.thedarken.sdm.duplicates.DuplicatesFragment.getSelectedItems(DuplicatesFragment.java:304)
at eu.thedarken.sdm.duplicates.DuplicatesFragment.onActionItemClicked(DuplicatesFragment.java:258)
at eu.thedarken.sdm.ui.recyclerview.SDMRecyclerView.onActionItemClicked(SDMRecyclerView.java:104)
at com.android.internal.policy.PhoneWindow$DecorView$ActionModeCallback2Wrapper.onActionItemClicked(PhoneWindow.java:3540)
at android.support.v7.view.SupportActionModeWrapper$CallbackWrapper.onActionItemClicked(SupportActionModeWrapper.java:168)
at android.support.v7.app.AppCompatDelegateImplV7$ActionModeCallbackWrapperV7.onActionItemClicked(AppCompatDelegateImplV7.java:1741)
at android.support.v7.app.AppCompatDelegateImplV7$ActionModeCallbackWrapperV7.onActionItemClicked(AppCompatDelegateImplV7.java:1741)
at android.support.v7.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:136)
at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811)
at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:948)
at android.support.v7.widget.ActionMenuView.invokeItem(ActionMenuView.java:618)
at android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:139)
at android.view.View.performClick(View.java:5204)
at android.view.View$PerformClick.run(View.java:21153)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment