java.lang.NullPointerException

Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web21084

  • via GitHub by yuribaril
    , 3 months ago
    Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
  • via GitHub by aviraxp
    , 8 months ago
    Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
  • via GitHub by Valodim
    , 1 year ago
    Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    24 more bugmates