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 tedder
, 1 year ago
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by Kruti Karvade
, 3 months ago
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by James
, 1 year 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 Stack Overflow by Sai Prakash Konda
, 6 days ago
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
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
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:409)	at android.widget.ArrayAdapter.getView(ArrayAdapter.java:371)	at android.widget.AbsListView.obtainView(AbsListView.java:2360)	at android.widget.ListView.measureHeightOfChildren(ListView.java:1326)	at android.widget.ListView.onMeasure(ListView.java:1233)	at android.view.View.measure(View.java:19730)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)	at android.view.View.measure(View.java:19730)	at com.android.internal.widget.AlertDialogLayout.tryOnMeasure(AlertDialogLayout.java:142)	at com.android.internal.widget.AlertDialogLayout.onMeasure(AlertDialogLayout.java:67)	at android.view.View.measure(View.java:19730)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)	at android.view.View.measure(View.java:19730)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)	at android.view.View.measure(View.java:19730)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)	at com.android.internal.policy.DecorView.onMeasure(DecorView.java:687)	at android.view.View.measure(View.java:19730)	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2271)	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1331)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1607)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)	at android.view.Choreographer.doCallbacks(Choreographer.java:683)	at android.view.Choreographer.doFrame(Choreographer.java:619)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)	at android.os.Handler.handleCallback(Handler.java:751)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:154)	at android.app.ActivityThread.main(ActivityThread.java:6077)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)