java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.content.pm.ResolveInfo.activityInfo' on a null object reference

GitHub | piersguo | 5 months ago
  1. 0

    Android6.0手机进入Add App选择列表选择任意一个应用均停止运行

    GitHub | 5 months ago | piersguo
    java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.content.pm.ResolveInfo.activityInfo' on a null object reference
  2. 0

    Error in switch in android 5.0

    Stack Overflow | 2 years ago | Hardik Chauhan
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.drawable.Drawable.getPadding(android.graphics.Rect)' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android Studio "Blank Activity" template not working

    Stack Overflow | 2 years ago | Midhun MP
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.res.ColorStateList.getColorForState(int[], int)' on a null object reference

  1. Agócs Tamás 2 times, last 6 months ago
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    Attempt to read from field 'android.content.pm.ActivityInfo android.content.pm.ResolveInfo.activityInfo' on a null object reference

    at android.view.ViewRootImpl.isTargetPackage()
  2. Android Platform
    ViewGroup.dispatchTouchEvent
    1. android.view.ViewRootImpl.isTargetPackage(ViewRootImpl.java:8092)
    2. android.view.ViewRootImpl.scheduleTraversals(ViewRootImpl.java:1262)
    3. android.view.ViewRootImpl.invalidateRectOnScreen(ViewRootImpl.java:1154)
    4. android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:1131)
    5. android.view.ViewGroup.invalidateChild(ViewGroup.java:5219)
    6. android.view.View.invalidateInternal(View.java:12900)
    7. android.view.View.invalidate(View.java:12860)
    8. android.view.View.invalidate(View.java:12844)
    9. android.widget.ListView.layoutChildren(ListView.java:1528)
    10. android.widget.AbsListView.onTouchUp(AbsListView.java:4184)
    11. android.widget.AbsListView.onTouchEvent(AbsListView.java:3924)
    12. android.view.View.dispatchTouchEvent(View.java:9415)
    13. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2660)
    14. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2304)
    15. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
    16. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
    17. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
    18. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
    19. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
    20. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
    21. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
    22. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
    23. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
    24. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
    25. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
    26. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
    26 frames
  3. Android
    PhoneWindow.superDispatchTouchEvent
    1. com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2453)
    2. com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1772)
    2 frames
  4. Android Platform
    Activity.dispatchTouchEvent
    1. android.app.Activity.dispatchTouchEvent(Activity.java:2808)
    1 frame
  5. Android v7
    WindowCallbackWrapper.dispatchTouchEvent
    1. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
    1 frame
  6. Android
    PhoneWindow$DecorView.dispatchTouchEvent
    1. com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2414)
    1 frame
  7. Android Platform
    MessageQueue.next
    1. android.view.View.dispatchPointerEvent(View.java:9646)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4743)
    3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4601)
    4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106)
    5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4159)
    6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4125)
    7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4271)
    8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4133)
    9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4328)
    10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106)
    11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4159)
    12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4125)
    13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4133)
    14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106)
    15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6560)
    16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6534)
    17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6477)
    18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6732)
    19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    20. android.os.MessageQueue.nativePollOnce(Native Method)
    21. android.os.MessageQueue.next(MessageQueue.java:328)
    21 frames