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 Nithinjith
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by rup35h
, 2 years ago
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by Kruti Karvade
, 5 months ago
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by James
, 2 years ago
Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
via Stack Overflow by Louis Evans
, 2 years ago
Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
via GitHub by tedder
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:401) at android.widget.ArrayAdapter.getView(ArrayAdapter.java:369) at android.widget.AbsListView.obtainView(AbsListView.java:2937) at android.widget.ListView.measureHeightOfChildren(ListView.java:1305) at android.widget.ListView.onMeasure(ListView.java:1212) at android.view.View.measure(View.java:20214) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:20214) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464) at android.widget.LinearLayout.measureVertical(LinearLayout.java:747) at android.widget.LinearLayout.onMeasure(LinearLayout.java:629) at android.view.View.measure(View.java:20214) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:20214) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:20214) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3083) at android.view.View.measure(View.java:20214) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2683) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1611) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1928) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1524) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7520) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911) at android.view.Choreographer.doCallbacks(Choreographer.java:686) at android.view.Choreographer.doFrame(Choreographer.java:622) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897) 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:7325) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)