https://pastein.ru/t/LrH

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


Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 3, Size: 0
       at java.util.ArrayList.remove(ArrayList.java:503)
       at ru.ozon.app.android.travel.feature.hotels.widgets.hotelSearchResults.presentation.adapter.HotelsSearchResultsAdapter.remove(HotelsSearchResultsAdapter.kt:63)
       at ru.ozon.app.android.travel.feature.hotels.widgets.hotelSearchResults.fragment.HotelsSearchResultsFragment.observeLiveData$lambda-9$lambda-3(HotelsSearchResultsFragment.kt:226)
       at ru.ozon.app.android.travel.feature.hotels.widgets.hotelSearchResults.fragment.HotelsSearchResultsFragment.$r8$lambda$OJawRArRwqZ1kkJ-uLY0VjNDNhw(HotelsSearchResultsFragment.kt)
       at ru.ozon.app.android.travel.feature.general.widgets.upsellOffer.presentation.UpsellOfferViewHolder$$InternalSyntheticLambda$0$22b497f6c3f62364d8e1115a8f94da47b2df8e6e0b0aa7e4990e5eda0e4dd852$0.onChanged$bridge(UpsellOfferViewHolder.java:46)
       at ru.ozon.app.android.utils.livedata.SingleLiveEvent.lambda$observe$0(SingleLiveEvent.java:58)
       at ru.ozon.app.android.utils.livedata.SingleLiveEvent.$r8$lambda$EhqI5S8nrVbRWXEiMtcAL8buJwU(SingleLiveEvent.java)
       at ru.ozon.app.android.chat.chat.ChatBinder$$InternalSyntheticLambda$0$b4506814ce8720f65a6a5ca9bd07d451e01c44b192001acbbf97aa2a6b50d315$4.onChanged$bridge(ChatBinder.java:14)
       at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
       at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:146)
       at androidx.lifecycle.LiveData$ObserverWrapper.activeStateChanged(LiveData.java:468)
       at androidx.lifecycle.LiveData$LifecycleBoundObserver.onStateChanged(LiveData.java:425)
       at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:354)
       at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.java:265)
       at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:307)
       at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:148)
       at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:134)
       at androidx.fragment.app.FragmentViewLifecycleOwner.handleLifecycleEvent(FragmentViewLifecycleOwner.java:88)
       at androidx.fragment.app.Fragment.performStart(Fragment.java:3028)
       at androidx.fragment.app.FragmentStateManager.start(FragmentStateManager.java:589)
       at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:300)
       at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2180)
       at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
       at androidx.fragment.app.FragmentManager.popBackStackImmediate(FragmentManager.java:781)
       at androidx.fragment.app.FragmentManager.popBackStackImmediate(FragmentManager.java:692)
       at ru.ozon.app.android.navigation.newrouter.ui.fragment.TabFragmentNavigator$navigate$2.invoke(TabFragmentNavigator.kt:76)
       at ru.ozon.app.android.navigation.newrouter.ui.fragment.TabFragmentNavigator$navigate$2.invoke(TabFragmentNavigator.kt:76)
       at ru.ozon.app.android.navigation.navigators.fragments.SafetyFragmentLifecycleCallbacks.safeTransaction$lambda-0(SafetyFragmentLifecycleCallbacks.kt:37)
       at ru.ozon.app.android.navigation.navigators.fragments.SafetyFragmentLifecycleCallbacks.$r8$lambda$pngwSurtuta6yeOu6LkfQc-ErjQ(SafetyFragmentLifecycleCallbacks.kt)
       at androidx.camera.core.impl.DeferrableSurfaces$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:42)
       at ru.ozon.app.android.navigation.navigators.fragments.SafetyFragmentLifecycleCallbacks.callTransaction(SafetyFragmentLifecycleCallbacks.kt:80)
       at ru.ozon.app.android.navigation.navigators.fragments.TransactionManager.safeTransaction(TransactionManager.kt:51)
       at ru.ozon.app.android.navigation.navigators.Navigator.safeTransaction(Navigator.kt:90)
       at ru.ozon.app.android.navigation.navigators.Navigator.safeTransaction$default(Navigator.kt:89)
       at ru.ozon.app.android.navigation.newrouter.ui.fragment.TabFragmentNavigator.navigate(TabFragmentNavigator.kt:76)
       at ru.ozon.app.android.navigation.navigators.NavigatorHolder.safeNavigate(NavigatorHolder.kt:96)
       at ru.ozon.app.android.navigation.navigators.NavigatorHolder.access$safeNavigate(NavigatorHolder.kt:17)
       at ru.ozon.app.android.navigation.navigators.NavigatorHolder.navigate$navigation_release(NavigatorHolder.kt:87)
       at ru.ozon.app.android.navigation.newrouter.OzonRouterImpl.navigateInternal(OzonRouterImpl.kt:57)
       at ru.ozon.app.android.navigation.newrouter.OzonRouterImpl.access$navigateInternal(OzonRouterImpl.kt:19)
       at ru.ozon.app.android.navigation.newrouter.OzonRouterImpl.navigate(OzonRouterImpl.kt:35)
       at ru.ozon.app.android.navigation.newrouter.OzonRouter$DefaultImpls.navigate$default(OzonRouter.kt:9)
       at ru.ozon.app.android.navigation.newrouter.RouterExtensionsKt.popBackStack(RouterExtensions.kt:16)
       at ru.ozon.app.android.navigation.newrouter.ui.fragment.TabFragment$onBackPressedCallback$1.handleOnBackPressed(TabFragment.kt:46)
       at androidx.activity.OnBackPressedDispatcher.onBackPressed(OnBackPressedDispatcher.java:192)
       at androidx.activity.ComponentActivity.onBackPressed(ComponentActivity.java:543)
       at android.app.Activity.onKeyUp(Activity.java:3776)
       at android.view.KeyEvent.dispatch(KeyEvent.java:2949)
       at android.app.Activity.dispatchKeyEvent(Activity.java:4112)
       at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.java:122)
       at androidx.core.view.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:84)
       at androidx.core.app.ComponentActivity.dispatchKeyEvent(ComponentActivity.java:140)
       at androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:599)
       at androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
       at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:3068)
       at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:454)
       at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:5744)
       at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5612)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5060)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5113)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5079)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5236)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5087)
       at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5293)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5060)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5113)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5079)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5087)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5060)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5113)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5079)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5269)
       at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:5439)
       at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:3101)
       at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:2644)
       at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:2635)
       at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:3078)
       at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:143)
       at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
       at android.os.MessageQueue.next(MessageQueue.java:363)
       at android.os.Looper.loop(Looper.java:173)
       at android.app.ActivityThread.main(ActivityThread.java:8178)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)