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 jasonni
, 1 year ago
Attempt to invoke virtual method 'void android.view.View.setPressed(boolean)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setPressed(boolean)' on a null object reference	at com.chad.library.adapter.base.listener.SimpleClickListener.onInterceptTouchEvent(SimpleClickListener.java:51)	at android.support.v7.widget.RecyclerView.dispatchOnItemTouch(RecyclerView.java:2479)	at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2607)	at android.view.View.dispatchTouchEvent(View.java:9301)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2547)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2240)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254)	at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2659)	at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1787)	at android.app.Dialog.dispatchTouchEvent(Dialog.java:787)	at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)	at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2620)	at android.view.View.dispatchPointerEvent(View.java:9521)	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)	at android.os.MessageQueue.nativePollOnce(Native Method)	at android.os.MessageQueue.next(MessageQueue.java:323)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5461)