openfoodfacts / openfoodfacts-androidapp

(Legacy) Native version of Open Food Facts on Android - Coders & Decoders welcome 🤳🥫
https://android.openfoodfacts.org
Apache License 2.0
767 stars 447 forks source link

NPE present in develop, and massively impacting all versions since 30 days+ #4004

Closed sentry-io[bot] closed 3 years ago

sentry-io[bot] commented 3 years ago

Sentry Issue: OPENFOODFACTS-ANDROID-1RM

NullPointerException: None
    at openfoodfacts.github.scrachx.openfood.features.product.view.summary.SummaryProductFragment.getBinding(SummaryProductFragment.kt:80)
    at openfoodfacts.github.scrachx.openfood.features.product.view.summary.SummaryProductFragment.resetScroll(SummaryProductFragment.kt:824)
    at openfoodfacts.github.scrachx.openfood.features.product.view.ProductViewFragment.bottomSheetWillGrow(ProductViewFragment.kt:109)
    at openfoodfacts.github.scrachx.openfood.features.scan.ContinuousScanActivity$QuickViewCallback.onSlide(ContinuousScanActivity.kt:735)
    at com.google.android.material.bottomsheet.BottomSheetBehavior.dispatchOnSlide(BottomSheetBehavior.java:1498)
...
(59 additional frame(s) were not displayed)

openfoodfacts.github.scrachx.openfood.features.product.view.summary.SummaryProductFragment in getBinding at line 80 openfoodfacts.github.scrachx.openfood.features.product.view.summary.SummaryProductFragment in resetScroll at line 824 openfoodfacts.github.scrachx.openfood.features.product.view.ProductViewFragment in bottomSheetWillGrow at line 109 openfoodfacts.github.scrachx.openfood.features.scan.ContinuousScanActivity$QuickViewCallback in onSlide at line 735 com.google.android.material.bottomsheet.BottomSheetBehavior in dispatchOnSlide at line 1498 com.google.android.material.bottomsheet.BottomSheetBehavior$4 in onViewPositionChanged at line 1365 androidx.customview.widget.ViewDragHelper in dragTo at line 1476 androidx.customview.widget.ViewDragHelper in processTouchEvent at line 1207 com.google.android.material.bottomsheet.BottomSheetBehavior in onTouchEvent at line 513 androidx.coordinatorlayout.widget.CoordinatorLayout in onTouchEvent at line 563 android.view.View in dispatchTouchEvent at line 12632

teolemon commented 3 years ago

Still present on current master, released yesterday

VaiTon commented 3 years ago

@teolemon could you provide steps to reproduce?