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 Doru
, 1 year ago
Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
via GitHub by dan0xii
, 3 weeks ago
Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
via Stack Overflow by Rider
, 1 year ago
Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
via Stack Overflow by jaguar
, 2 years ago
Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
via Google Groups by bcoombs, 6 months ago
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference at java.util.ArrayList.addAll(ArrayList.java:188) at android.widget.ArrayAdapter.addAll(ArrayAdapter.java:210) at com.thibaudperso.sonycamera.timelapse.fragments.CameraSettingsFragment$CameraSettings.onPostExecute(CameraSettingsFragment.java:311) at com.thibaudperso.sonycamera.timelapse.fragments.CameraSettingsFragment$CameraSettings.onPostExecute(CameraSettingsFragment.java:297) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5468) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)