Transportr icon indicating copy to clipboard operation
Transportr copied to clipboard

IndexOutOfBoundsException in DepartureAdapter

Open grote opened this issue 1 year ago • 1 comments

Exception java.lang.IndexOutOfBoundsException: Asked to get item at -1 but size is 0
  at androidx.recyclerview.widget.SortedList.get (SortedList.java:706)
  at de.grobox.transportr.departures.DepartureAdapter.getItem (DepartureAdapter.java:96)
  at de.grobox.transportr.departures.DeparturesActivity.loadMoreDepartures (DeparturesActivity.java:238)
  at de.grobox.transportr.departures.DeparturesActivity.lambda$onCreate$0 (DeparturesActivity.java:127)
  at de.grobox.transportr.departures.DeparturesActivity.$r8$lambda$3f5aVX6MH5h4XzeWB06Qw6Y12cc (DeparturesActivity.java)
  at de.grobox.transportr.departures.DeparturesActivity$$ExternalSyntheticLambda0.onRefresh (R8$$SyntheticClass)
  at com.omadahealth.github.swipyrefreshlayout.library.SwipyRefreshLayout$1.onAnimationEnd (SwipyRefreshLayout.java:176)
  at com.omadahealth.github.swipyrefreshlayout.library.CircleImageView.onAnimationEnd (CircleImageView.java:108)

grote avatar Mar 25 '24 14:03 grote

Do you have any idea why this bug happened?

Altonss avatar May 12 '24 11:05 Altonss

should be fixed in v2.2.5

woheller69 avatar Nov 18 '25 15:11 woheller69