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

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 Michael Narvaez
, 1 year ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by Unknown author, 2 years ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by Insside You
, 2 years ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by LEADER
, 2 years ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via scriptscoop.net by Unknown author, 1 year ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via itcuties.com by Unknown author, 1 year ago
Attempt to invoke interface methodint java.util.List.size()’ 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:330)
at android.widget.ListView.setAdapter(ListView.java:502)
at com.narvin.android.booklisting.MainActivity.updateDisplay(MainActivity.java:113)
at com.narvin.android.booklisting.MainActivity$MyTask.onPostExecute(MainActivity.java:100)
at com.narvin.android.booklisting.MainActivity$MyTask.onPostExecute(MainActivity.java:79)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
2 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.