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 Stack Overflow by Thomas Scarecrow Maveric
, 1 year ago
Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference	at com.evolustudios.askin.askin.src.fragments.FeedFragment.onCreateView(FeedFragment.java:63)	at android.support.v4.app.Fragment.performCreateView(Fragment.java:2080)	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1108)	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)	at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801)	at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1638)	at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:679)	at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:143)	at android.support.v4.view.ViewPager.populate(ViewPager.java:1240)	at android.support.v4.view.ViewPager.populate(ViewPager.java:1088)	at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1614)	at android.view.View.measure(View.java:18788)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)	at android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:706)	at android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:90)	at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1364)	at android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:771)	at android.view.View.measure(View.java:18788)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)	at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)	at android.view.View.measure(View.java:18788)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)	at android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:389)	at android.view.View.measure(View.java:18788)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)	at android.view.View.measure(View.java:18788)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:630)	at android.view.View.measure(View.java:18788)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)	at com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2643)	at android.view.View.measure(View.java:18788)	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2100)	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1216)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1508)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)	at android.view.Choreographer.doCallbacks(Choreographer.java:670)	at android.view.Choreographer.doFrame(Choreographer.java:606)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:148)	at android.app.ActivityThread.main(ActivityThread.java:5417)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)