java.lang.NullPointerException

  1. 0

    ListView, adapter exception

    Stack Overflow | 3 years ago | Marco Acierno
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at android.widget.ArrayAdapter.createViewFromResource()
    2. Android Platform
      ViewGroup.measureChildWithMargins
      1. android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394)
      2. android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)
      3. android.widget.AbsSpinner.onMeasure(AbsSpinner.java:193)
      4. android.widget.Spinner.onMeasure(Spinner.java:483)
      5. android.view.View.measure(View.java:16849)
      6. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5378)
      7. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1621)
      8. android.widget.LinearLayout.measureVertical(LinearLayout.java:742)
      9. android.widget.LinearLayout.onMeasure(LinearLayout.java:607)
      10. android.view.View.measure(View.java:16849)
      11. android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1237)
      12. android.widget.FrameLayout.onMeasure(FrameLayout.java:340)
      13. android.widget.ScrollView.onMeasure(ScrollView.java:326)
      14. android.view.View.measure(View.java:16849)
      15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5378)
      16. android.widget.FrameLayout.onMeasure(FrameLayout.java:340)
      17. android.view.View.measure(View.java:16849)
      18. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5378)
      18 frames
    3. Android
      ActionBarOverlayLayout.onMeasure
      1. com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:327)
      1 frame
    4. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:16849)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5378)
      3. android.widget.FrameLayout.onMeasure(FrameLayout.java:340)
      3 frames
    5. Android
      PhoneWindow$DecorView.onMeasure
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2332)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.view.View.measure(View.java:16849)
      2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2265)
      3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1331)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1528)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1208)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6274)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:788)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:591)
      9. android.view.Choreographer.doFrame(Choreographer.java:560)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:774)
      11. android.os.Handler.handleCallback(Handler.java:808)
      12. android.os.Handler.dispatchMessage(Handler.java:103)
      13. android.os.Looper.loop(Looper.java:193)
      14. android.app.ActivityThread.main(ActivityThread.java:5299)
      14 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
      2 frames
    9. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame