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 FiN
, 1 year ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by Ah Yong
, 1 year ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by Mina Dahesh
, 2 years ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via GitHub by TepesLucian
, 2 years ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by Qubin
, 1 year ago
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
via Stack Overflow by Spidey
, 1 year ago
Attempt to invoke interface method 'int 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.AdapterView.checkFocus(AdapterView.java:947) at android.widget.AdapterView$AdapterDataSetObserver.onInvalidated(AdapterView.java:1070) at android.widget.AbsListView$AdapterDataSetObserver.onInvalidated(AbsListView.java:8297) at android.database.DataSetObservable.notifyInvalidated(DataSetObservable.java:50) at android.widget.BaseAdapter.notifyDataSetInvalidated(BaseAdapter.java:59) at android.widget.ArrayAdapter$ArrayFilter.publishResults(ArrayAdapter.java:513) at android.widget.Filter$ResultsHandler.handleMessage(Filter.java:282) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6939) 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:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)