java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getHeight()' on a null object reference
jiansheliuxing opened this issue · 1 comments
I have got a NPE
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getHeight()' on a null object reference
com.github.ksoichiro.android.observablescrollview.ObservableRecyclerView.void onScrollChanged(int,int,int,int)(ObservableRecyclerView.java:102)
android.support.v7.widget.RecyclerView.h(RecyclerView.java:3942)
android.support.v7.widget.RecyclerView.a(RecyclerView.java:1557)
android.support.v7.widget.RecyclerView.onGenericMotionEvent(RecyclerView.java:2578)
android.view.View.dispatchGenericMotionEventInternal(View.java:8581)
android.view.View.dispatchGenericMotionEvent(View.java:8562)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919)
android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870)
android.view.View.dispatchGenericMotionEvent(View.java:8555)
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchGenericMotionEvent(PhoneWindow.java:2377)
com.android.internal.policy.impl.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1729)
android.app.Activity.dispatchGenericMotionEvent(Activity.java:2778)
android.support.v7.view.n.dispatchGenericMotionEvent(WindowCallbackWrapper.java:70)
android.support.v7.view.n.dispatchGenericMotionEvent(WindowCallbackWrapper.java:70)
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchGenericMotionEvent(PhoneWindow.java:2344)
android.view.View.dispatchPointerEvent(View.java:8668)
android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4123)
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3989)
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)
android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5807)
android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5781)
android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5752)
android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5897)
android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
android.os.MessageQueue.nativePollOnce(Native Method)
android.os.MessageQueue.next(MessageQueue.java:143)
The device is GT-P5210;Android 5.1.1,level 22