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

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 piersguo
, 1 year ago
Attempt to read from field 'android.content.pm.ActivityInfo android.content.pm.ResolveInfo.activityInfo' on a null object reference
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(ViewRootImpl.java:8092)
at android.view.ViewRootImpl.scheduleTraversals(ViewRootImpl.java:1262)
at android.view.ViewRootImpl.invalidateRectOnScreen(ViewRootImpl.java:1154)
at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:1131)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:5219)
at android.view.View.invalidateInternal(View.java:12900)
at android.view.View.invalidate(View.java:12860)
at android.view.View.invalidate(View.java:12844)
at android.widget.ListView.layoutChildren(ListView.java:1528)
at android.widget.AbsListView.onTouchUp(AbsListView.java:4184)
at android.widget.AbsListView.onTouchEvent(AbsListView.java:3924)
at android.view.View.dispatchTouchEvent(View.java:9415)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2660)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2304)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2453)
at android.view.View.dispatchPointerEvent(View.java:9646)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4743)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4601)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4159)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4125)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4271)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4133)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4328)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4159)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4125)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4133)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6560)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6534)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6477)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6732)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:328)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.