java.lang.NullPointerException: collection == null

google.com | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    collection == null

    at android.os.Parcel.readException()
  2. Android Platform
    TextToSpeech.getVoice
    1. android.os.Parcel.readException(Parcel.java:1546)
    2. android.os.Parcel.readException(Parcel.java:1493)
    3. android.speech.tts.ITextToSpeechService$Stub$Proxy.getVoices(ITextToSpeechService.java:700)
    4. android.speech.tts.TextToSpeech$14.run(TextToSpeech.java:1657)
    5. android.speech.tts.TextToSpeech$14.run(TextToSpeech.java:1650)
    6. android.speech.tts.TextToSpeech$Connection.runAction(TextToSpeech.java:2232)
    7. android.speech.tts.TextToSpeech.runAction(TextToSpeech.java:742)
    8. android.speech.tts.TextToSpeech.runAction(TextToSpeech.java:732)
    9. android.speech.tts.TextToSpeech.getVoice(TextToSpeech.java:1650)
    9 frames
  3. com.xxxxxx.yyyyyy
    cccccc.onInit
    1. com.xxxxxx.yyyyyy.cccccc.onInit(Foo.java:645)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.speech.tts.TextToSpeech.dispatchOnInit(TextToSpeech.java:814)
    2. android.speech.tts.TextToSpeech.access$1400(TextToSpeech.java:59)
    3. android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2146)
    4. android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2101)
    5. android.os.AsyncTask.finish(AsyncTask.java:632)
    6. android.os.AsyncTask.access$600(AsyncTask.java:177)
    7. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
    8. android.os.Handler.dispatchMessage(Handler.java:102)
    9. android.os.Looper.loop(Looper.java:135)
    10. android.app.ActivityThread.main(ActivityThread.java:5221)
    10 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit$MethodAndArgsCaller.run
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    1 frame