Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by wenmingvs
, 1 year ago
Attempt to invoke virtual method 'int android.view.View.getTop()' on a null object reference
via GitHub by wenmingvs
, 1 year ago
Attempt to invoke virtual method 'int android.view.View.getTop()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getTop()' on a null object reference	at com.wenming.weiswift.ui.login.fragment.home.userdetail.UserActivity$9.onScrollStateChanged(UserActivity.java:283)	at android.support.v7.widget.RecyclerView.dispatchOnScrollStateChanged(RecyclerView.java:3972)	at android.support.v7.widget.RecyclerView.setScrollState(RecyclerView.java:1194)	at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2453)	at android.view.View.dispatchTouchEvent(View.java:8504)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2400)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2093)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2406)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2107)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2406)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2107)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2406)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2107)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2406)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2107)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2406)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2107)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2406)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2107)	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2507)	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1748)	at android.app.Activity.dispatchTouchEvent(Activity.java:2785)	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2468)	at android.view.View.dispatchPointerEvent(View.java:8699)	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4231)	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4097)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3652)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3705)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3671)	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3788)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3679)	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3845)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3652)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3705)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3671)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3679)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3652)	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5953)	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5898)	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5869)	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6109)	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)	at android.os.MessageQueue.nativePollOnce(Native Method)	at android.os.MessageQueue.next(MessageQueue.java:143)	at android.os.Looper.loop(Looper.java:122)	at android.app.ActivityThread.main(ActivityThread.java:5313)	at java.lang.reflect.Method.invoke(Native Method)	at java.lang.reflect.Method.invoke(Method.java:372)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1116)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:809)