woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

NullPointerException: null cannot be cast to non-null type com.woocommerce.android.ui.orders.list.OrderListItemUIType.O... #11466

Open sentry-io[bot] opened 6 months ago

sentry-io[bot] commented 6 months ago

Sentry Issue: WOOCOMMERCE-ANDROID-9NV

NullPointerException: null cannot be cast to non-null type com.woocommerce.android.ui.orders.list.OrderListItemUIType.OrderListItemUI
    at com.woocommerce.android.ui.orders.list.OrderListViewModel.updateOrderDisplayedStatus(OrderListViewModel.kt:628)
    (pagedList[position] as OrderListItemUIType.OrderListItemUI).status = status
    at com.woocommerce.android.ui.orders.list.OrderListViewModel.swipeStatusUpdateOptimisticSuccess(OrderListViewModel.kt:685)
    updateOrderDisplayedStatus(gestureSource.orderPosition, gestureSource.newStatus)
    at com.woocommerce.android.ui.orders.list.OrderListViewModel.access$checkChaChingSoundSettings(OrderListViewModel.kt:91)
    @Suppress("LargeClass")
    at com.woocommerce.android.ui.orders.list.OrderListViewModel.access$swipeStatusUpdateOptimisticSuccess(OrderListViewModel.kt:91)
    @Suppress("LargeClass")
    at com.woocommerce.android.ui.orders.list.OrderListViewModel$onSwipeStatusUpdate$1.invoke(OrderListViewModel.kt:670)
    onOptimisticSuccess = { swipeStatusUpdateOptimisticSuccess(gestureSource) },
...
(19 additional frame(s) were not displayed)
dangermattic commented 6 months ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.