java.lang.NullPointerException

Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web148

Stack trace

  • 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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

ajinkya_wajinkya_w
2 times, last one,
mrPetmrPet
56 times, last one,
Indri YunitaIndri Yunita
18 times, last one,
0x600x60
133 times, last one,
brunosatrianibrunosatriani
1 times, last one,
13 more bugmates