babybuddy / babybuddy-for-android

Android client for the Baby Buddy webapp
MIT License
16 stars 6 forks source link

`ArrayIndexOutOfBoundsException` in `ChildEventHistoryLoader.updateTop` #79

Closed MrApplejuice closed 1 month ago

MrApplejuice commented 1 month ago
Exception java.lang.ArrayIndexOutOfBoundsException: length=54; index=54
  at eu.pkgsoftware.babybuddywidgets.history.ChildEventHistoryLoader.updateTop (ChildEventHistoryLoader.kt:294)
  at eu.pkgsoftware.babybuddywidgets.BabyLayoutHolder.lambda$new$0 (BabyLayoutHolder.java:57)
  at eu.pkgsoftware.babybuddywidgets.BabyLayoutHolder.$r8$lambda$q0qwcD6CLpCF9UAUpujysPwzISY
  at eu.pkgsoftware.babybuddywidgets.BabyLayoutHolder$$ExternalSyntheticLambda3.onScrollChange (D8$$SyntheticClass)
  at android.view.View.onScrollChanged (View.java:18376)
  at android.widget.ScrollView.onOverScrolled (ScrollView.java:1051)
  at android.view.View.overScrollBy (View.java:29392)

As captured on Google Play.


Background

I am not sure yet why this is happening. It smells like a bug in the (Endaware)ContinousListIntegrator which causes pretty severe list truncations at times...