mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-11 02:30:41 +08:00
Guard against content view being null in onOverScrolled
Summary: It seems that the content view can sometimes be null when onOverScrolled is called (presumably when the scrollview gets unmounted while it's in the middle of scrolling?). Changelog: [Android][fixed] - Guard against content view being null in onOverScrolled. Reviewed By: mdvacca Differential Revision: D14737534 fbshipit-source-id: e88ec6f585e50517b734a8809fc3843c0b22df10
This commit is contained in:
committed by
Facebook Github Bot
parent
71a8944b39
commit
15b2f994ce
@@ -665,7 +665,7 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
|
||||
|
||||
@Override
|
||||
protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) {
|
||||
if (mScroller != null) {
|
||||
if (mScroller != null && mContentView != null) {
|
||||
// FB SCROLLVIEW CHANGE
|
||||
|
||||
// This is part two of the reimplementation of fling to fix the bounce-back bug. See #fling() for
|
||||
|
||||
Reference in New Issue
Block a user