java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setPressed(boolean)' on a null object reference

GitHub | technohowl | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 19#217485235

    GitHub | 10 months ago | technohowl
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setPressed(boolean)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void android.view.View.setPressed(boolean)' on a null object reference

      at com.jpardogo.listbuddies.lib.views.ListBuddiesLayout.performClick()
    2. com.jpardogo.listbuddies
      ListBuddiesLayout.onTouch
      1. com.jpardogo.listbuddies.lib.views.ListBuddiesLayout.performClick(ListBuddiesLayout.java:396)
      2. com.jpardogo.listbuddies.lib.views.ListBuddiesLayout.actionUp(ListBuddiesLayout.java:375)
      3. com.jpardogo.listbuddies.lib.views.ListBuddiesLayout.onTouch(ListBuddiesLayout.java:299)
      3 frames
    3. Android Platform
      ViewGroup.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java:9331)
      2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2548)
      3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2241)
      4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      14. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      15. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      16. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
      17. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
      17 frames
    4. Android
      PhoneWindow.superDispatchTouchEvent
      1. com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2425)
      2. com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1743)
      2 frames
    5. Android Platform
      Activity.dispatchTouchEvent
      1. android.app.Activity.dispatchTouchEvent(Activity.java:2805)
      1 frame
    6. Android v7
      ActionBarActivityDelegateICS$WindowCallbackWrapper.dispatchTouchEvent
      1. android.support.v7.app.ActionBarActivityDelegateICS$WindowCallbackWrapper.dispatchTouchEvent(ActionBarActivityDelegateICS.java:260)
      1 frame
    7. Android
      PhoneWindow$DecorView.dispatchTouchEvent
      1. com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2386)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.view.View.dispatchPointerEvent(View.java:9557)
      2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4263)
      3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4102)
      4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3644)
      5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3697)
      6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3663)
      7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3789)
      8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3671)
      9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3846)
      10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3644)
      11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3697)
      12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3663)
      13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3671)
      14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3644)
      15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5955)
      16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5929)
      17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5890)
      18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6058)
      19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
      20. android.os.MessageQueue.nativePollOnce(Native Method)
      21. android.os.MessageQueue.next(MessageQueue.java:323)
      22. android.os.Looper.loop(Looper.java:135)
      23. android.app.ActivityThread.main(ActivityThread.java:5490)
      23 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames