babybuddy / babybuddy-for-android

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

StateTracker null in BabyLayoutHolder #41

Closed MrApplejuice closed 1 year ago

MrApplejuice commented 1 year ago
Exception java.lang.RuntimeException:
  at eu.pkgsoftware.babybuddywidgets.BabyLayoutHolder.updateChild (BabyLayoutHolder.java:170)
  at eu.pkgsoftware.babybuddywidgets.LoggedInFragment$BabyPagerAdapter.onBindViewHolder (LoggedInFragment.java:60)
  at eu.pkgsoftware.babybuddywidgets.LoggedInFragment$BabyPagerAdapter.onBindViewHolder (LoggedInFragment.java:38)
  at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder (RecyclerView.java:7065)
  at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder (RecyclerView.java:7107)
  at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline (RecyclerView.java:6012)
  at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:6279)
  at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:6118)
  at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:6114)
  at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2303)
  at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk (LinearLayoutManager.java:1627)
  at androidx.recyclerview.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1587)
  at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren (LinearLayoutManager.java:665)
  at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:4134)
  at androidx.recyclerview.widget.RecyclerView.dispatchLayout (RecyclerView.java:3851)
  at androidx.recyclerview.widget.RecyclerView.onLayout (RecyclerView.java:4404)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at androidx.viewpager2.widget.ViewPager2.onLayout (ViewPager2.java:527)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.widget.RelativeLayout.onLayout (RelativeLayout.java:1103)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:334)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:334)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at androidx.constraintlayout.widget.ConstraintLayout.onLayout (ConstraintLayout.java:1873)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at com.google.android.material.appbar.HeaderScrollingViewBehavior.layoutChild (HeaderScrollingViewBehavior.java:149)
  at com.google.android.material.appbar.ViewOffsetBehavior.onLayoutChild (ViewOffsetBehavior.java:43)
  at com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior.onLayoutChild (AppBarLayout.java:2376)
  at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout (CoordinatorLayout.java:918)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:334)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1857)
  at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1701)
  at android.widget.LinearLayout.onLayout (LinearLayout.java:1610)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:334)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1857)
  at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1701)
  at android.widget.LinearLayout.onLayout (LinearLayout.java:1610)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:334)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at com.android.internal.policy.DecorView.onLayout (DecorView.java:1146)
  at android.view.View.layout (View.java:22496)
  at android.view.ViewGroup.layout (ViewGroup.java:6528)
  at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:3743)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3207)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2166)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8887)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1280)
  at android.view.Choreographer.doCallbacks (Choreographer.java:1019)
  at android.view.Choreographer.doFrame (Choreographer.java:911)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1248)
  at android.os.Handler.handleCallback (Handler.java:900)
  at android.os.Handler.dispatchMessage (Handler.java:103)
  at android.os.Looper.loop (Looper.java:219)
  at android.app.ActivityThread.main (ActivityThread.java:8668)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:513)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1109)
MrApplejuice commented 1 year ago

Potential fix implemented... observing after release.

MrApplejuice commented 1 year ago

Closing has having a speculative fix applied!