https://pastein.ru/t/nyv

  скопируйте уникальную ссылку для отправки


Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=147; index=-1
       at java.util.ArrayList.get(ArrayList.java:439)
       at ru.ozon.app.android.travel.widgets.pricesHistogram.presentation.PricesHistogramWidgetViewHolder.showStateFrom(PricesHistogramWidgetViewHolder.java:240)
       at ru.ozon.app.android.travel.widgets.pricesHistogram.presentation.PricesHistogramWidgetViewHolder.bind(PricesHistogramWidgetViewHolder.java:72)
       at ru.ozon.app.android.travel.widgets.pricesHistogram.presentation.PricesHistogramWidgetViewHolder.access$setCountOfEmptyDays$p(PricesHistogramWidgetViewHolder.java:32)
       at ru.ozon.app.android.composer.widgets.base.WidgetViewHolder.bindItem(WidgetViewHolder.java:76)
       at ru.ozon.app.android.composer.widgets.base.WidgetViewHolder.bindItem$default(WidgetViewHolder.java:70)
       at ru.ozon.app.android.composer.view.ComposerAdapter.bind(ComposerAdapter.java:257)
       at ru.ozon.app.android.composer.view.ComposerAdapter.onBindViewHolder(ComposerAdapter.java:128)
       at ru.ozon.app.android.composer.view.ComposerAdapter.access$getViewHoldersPerformanceTracker$p(ComposerAdapter.java:78)
       at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:7065)
       at ru.ozon.app.android.composer.view.ComposerAdapter.onBindViewHolder(ComposerAdapter.java:168)
       at ru.ozon.app.android.composer.view.ComposerAdapter.access$getViewHoldersPerformanceTracker$p(ComposerAdapter.java:78)
       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.GridLayoutManager.layoutChunk(GridLayoutManager.java:561)
       at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1587)
       at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:665)
       at androidx.recyclerview.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
       at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4134)
       at androidx.recyclerview.widget.RecyclerView.onMeasure(RecyclerView.java:3540)
       at ru.ozon.app.android.composer.universalscreen.view.MetricsRecyclerView.onMeasure(MetricsRecyclerView.java:54)
       at android.view.View.measure(View.java:27131)
       at androidx.constraintlayout.widget.ConstraintLayout$Measurer.measure(ConstraintLayout.java:792)
       at androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure.measure(BasicMeasure.java:480)
       at androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure.measureChildren(BasicMeasure.java:134)
       at androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure.solverMeasure(BasicMeasure.java:277)
       at androidx.constraintlayout.solver.widgets.ConstraintWidgetContainer.measure(ConstraintWidgetContainer.java:119)
       at androidx.constraintlayout.widget.ConstraintLayout.resolveSystem(ConstraintLayout.java:1578)
       at androidx.constraintlayout.widget.ConstraintLayout.onMeasure(ConstraintLayout.java:1690)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552)
       at android.widget.LinearLayout.measureVertical(LinearLayout.java:842)
       at android.widget.LinearLayout.onMeasure(LinearLayout.java:721)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:760)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:833)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552)
       at android.widget.LinearLayout.measureVertical(LinearLayout.java:842)
       at android.widget.LinearLayout.onMeasure(LinearLayout.java:721)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
       at androidx.appcompat.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:146)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552)
       at android.widget.LinearLayout.measureVertical(LinearLayout.java:842)
       at android.widget.LinearLayout.onMeasure(LinearLayout.java:721)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7951)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
       at com.android.internal.policy.DecorView.onMeasure(DecorView.java:1173)
       at android.view.View.measure(View.java:27131)
       at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:4139)
       at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:2893)
       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3156)
       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2575)
       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9910)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1010)
       at android.view.Choreographer.doCallbacks(Choreographer.java:809)
       at android.view.Choreographer.doFrame(Choreographer.java:744)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:995)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8506)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)