java.lang.NullPointerException: collection == null

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 snark
, 1 year ago
Attempt to read from field 'java.util.Set evs.d' on a null object reference
via Stack Overflow by NSouth
, 2 years ago
Attempt to invoke virtual method 'void com.google.android.gms.backup.d.r.a(android.content.Context)' on a null object reference
via GitHub by tobiasschuerg
, 1 year ago
Attempt to invoke virtual method 'int com.android.server.job.controllers.JobStatus.getUid()' on a null object reference
via GitHub by Steven-Yao
, 3 months ago
Attempt to invoke virtual method 'int com.android.server.job.controllers.JobStatus.getUid()' on a null object reference
via GitHub by NiaNingXue
, 1 year ago
Attempt to invoke virtual method 'int com.android.server.job.controllers.JobStatus.getUid()' on a null object reference
java.lang.NullPointerException: collection == null
at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1493)
at android.speech.tts.ITextToSpeechService$Stub$Proxy.getVoices(ITextToSpeechService.java:700)
at android.speech.tts.TextToSpeech$14.run(TextToSpeech.java:1657)
at android.speech.tts.TextToSpeech$14.run(TextToSpeech.java:1650)
at android.speech.tts.TextToSpeech$Connection.runAction(TextToSpeech.java:2232)
at android.speech.tts.TextToSpeech.runAction(TextToSpeech.java:742)
at android.speech.tts.TextToSpeech.runAction(TextToSpeech.java:732)
at android.speech.tts.TextToSpeech.getVoice(TextToSpeech.java:1650)
at com.xxxxxx.yyyyyy.cccccc.onInit(Foo.java:645)
at android.speech.tts.TextToSpeech.dispatchOnInit(TextToSpeech.java:814)
at android.speech.tts.TextToSpeech.access$1400(TextToSpeech.java:59)
at android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2146)
at android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2101)
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:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)

Users with the same issue

10 times, 4 months ago
2 times, 6 months ago
2 times, 7 months ago
2 times, 7 months ago
611 times, 10 months ago

Write tip

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