java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ibm.watson.developer_cloud.android.examples/com.ibm.watson.developer_cloud.android.examples.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

Stack Overflow | skbrhmn | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Populating a spinner crashes the app on one phone (Android 6.0.1) but not on another (Android 4.4.2)

    Stack Overflow | 11 months ago | skbrhmn
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ibm.watson.developer_cloud.android.examples/com.ibm.watson.developer_cloud.android.examples.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
  2. 0

    Android RunTime Permissions

    Stack Overflow | 11 months ago | skbrhmn
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ibm.watson.developer_cloud.android.examples/com.ibm.watson.developer_cloud.android.examples.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
  3. 0

    Nullpointer in TopicActivity

    GitHub | 2 years ago | TepesLucian
    java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    android - Nullpointer error in ArrayList

    Stack Overflow | 2 months ago | Spidey
    java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
  6. 0

    TopicActivity NPE after pause

    GitHub | 3 years ago | Dream-of-Electric-Sheep
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dream_of_electric_sheep.android.m_parking/com.uservoice.uservoicesdk.activity.TopicActivity}: java.lang.NullPointerException

    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

      Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

      at android.widget.ArrayAdapter.getCount()
    2. Android Platform
      Spinner.setAdapter
      1. android.widget.ArrayAdapter.getCount(ArrayAdapter.java:337)
      2. android.widget.AbsSpinner.setAdapter(AbsSpinner.java:115)
      3. android.widget.Spinner.setAdapter(Spinner.java:554)
      3 frames
    3. com.ibm.watson
      MainActivity$FragmentTabSTT.onCreateView
      1. com.ibm.watson.developer_cloud.android.examples.MainActivity$FragmentTabSTT.addItemsOnSpinnerModels(MainActivity.java:566)
      2. com.ibm.watson.developer_cloud.android.examples.MainActivity$FragmentTabSTT.onCreateView(MainActivity.java:190)
      2 frames
    4. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Fragment.performCreateView(Fragment.java:2281)
      2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:983)
      3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1163)
      4. android.app.BackStackRecord.run(BackStackRecord.java:793)
      5. android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1552)
      6. android.app.FragmentController.execPendingActions(FragmentController.java:325)
      7. android.app.Activity.performStart(Activity.java:6914)
      8. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3217)
      8 frames