TableView icon indicating copy to clipboard operation
TableView copied to clipboard

[Bug] Multiple hide columns -> showAllHided columns generates IndexOutOfBoundsException

Open Andrey-Morenkov opened this issue 5 years ago • 0 comments

[Preliminary setup]: has list of some columns to hide (for example random 27 columns to hide / 31 all columns)

[Steps to reproduce]:

  1. hide all columns by: columnsToHide.forEach { hideColumn(it) }
  2. revert by calling showAllHidedColumns()
  3. repeat step 1and 2
  4. try to hide columns one more time

[Actual Result]: java.lang.IndexOutOfBoundsException: Index: 30, Size: 27 Also before step 4) we have length discrepancy between columns items and cells items Also detected this log after step 3): E/CellRecyclerView: mIsVerticalScrollListenerRemoved has been tried to remove itself before add new one

[Expect Result]: Can hide columns -> showColumns as many times as wanted without any issues

Andrey-Morenkov avatar Oct 12 '20 23:10 Andrey-Morenkov