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 prGD
, 2 years ago
Attempt to invoke virtual method 'int java.lang.String.lastIndexOf(int)' on a null object reference
via GitHub by askirk
, 1 year ago
Attempt to read from field 'android.content.ComponentName com.android.server.am.ServiceRecord.name' on a null object reference
via Stack Overflow by Gregory
, 2 years ago
Attempt to read from field 'java.lang.String android.content.pm.PackageInfo.packageName' on a null object reference
via GitHub by varunasingh
, 3 months 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:1555)	at android.os.Parcel.readException(Parcel.java:1502)	at android.speech.tts.ITextToSpeechService$Stub$Proxy.getVoices(ITextToSpeechService.java:700)	at android.speech.tts.TextToSpeech$15.run(TextToSpeech.java:1712)	at android.speech.tts.TextToSpeech$15.run(TextToSpeech.java:1677)	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.getDefaultVoice(TextToSpeech.java:1677)	at com.foo.android.common.tts.TTSManager.setNetworkSynthesisAPI21(Unknown Source)	at com.foo.android.common.tts.TTSManager._speakUtterance(Unknown Source)	at com.foo.android.common.tts.TTSManager.continueWithNextUtterance(Unknown Source)	at com.foo.android.common.tts.TTSManager._queueUtterance(Unknown Source)	at com.foo.android.common.tts.TTSManager._speak(Unknown Source)	at com.foo.android.common.tts.TTSManager.speak(Unknown Source)	at com.foo.android.common.ui.conversation.VoiceConversation.speakWithSilent(Unknown Source)	at com.foo.android.common.ui.conversation.VoiceConversation.speak(Unknown Source)	at com.foo.assist.android.ui.activities.voice.BluetoothSupportedVoiceConversation.speak(BluetoothSupportedVoiceConversation.java:128)	at com.foo.assist.android.ui.activities.voice.PendingReminderConversation.speak(PendingReminderConversation.java:264)	at com.foo.android.common.ui.conversation.SystemQuestion.tell(Unknown Source)	at com.foo.android.common.ui.conversation.SystemQuestion$1.run(Unknown Source)	at com.foo.java.common.util.Threads$2.run(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)	at java.lang.Thread.run(Thread.java:818)