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 skbrhmn
, 1 year ago
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
via Stack Overflow by skbrhmn
, 1 year ago
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
via GitHub by misaochan
, 1 year ago
Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.upload.ShareActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by SusanooJK
, 1 year ago
Unable to start activity ComponentInfo{com.uploadtodatabasevts/com.uploadtodatabasevts.Advisor}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by LetsDoCode
, 1 year ago
Unable to start activity ComponentInfo{com.example.android.popularmovies/com.example.android.popularmovies.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via GitHub by eliasbrange
, 1 year ago
Unable to start activity ComponentInfo{com.xxx.template/com.xxx.template.AndroidLauncher}: java.lang.NullPointerException: Attempt to invoke interface method 'int com.badlogic.gdx.Graphics.getWidth()' on a null object reference
java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference	at android.widget.ArrayAdapter.getCount(ArrayAdapter.java:337)	at android.widget.AbsSpinner.setAdapter(AbsSpinner.java:115)	at android.widget.Spinner.setAdapter(Spinner.java:554)	at com.ibm.watson.developer_cloud.android.examples.MainActivity$FragmentTabSTT.addItemsOnSpinnerModels(MainActivity.java:566)	at com.ibm.watson.developer_cloud.android.examples.MainActivity$FragmentTabSTT.onCreateView(MainActivity.java:190)	at android.app.Fragment.performCreateView(Fragment.java:2281)	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:983)	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1163)	at android.app.BackStackRecord.run(BackStackRecord.java:793)	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1552)	at android.app.FragmentController.execPendingActions(FragmentController.java:325)	at android.app.Activity.performStart(Activity.java:6914)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3217)