java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Google Groups by b0b, 1 year ago
Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
via Stack Overflow by Utif Milkedori
, 1 year ago
Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
via Stack Overflow by yuval
, 1 year ago
Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
via Stack Overflow by End.Game
, 1 year ago
Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
via GitHub by bailibaili
, 1 year ago
Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
at android.util.Base64.decode(Base64.java:118)
at com.google.firebase.iid.zzg.zzeH(Unknown Source)
at com.google.firebase.iid.zzg.zzeE(Unknown Source)
at com.google.firebase.iid.zzd.zzCd(Unknown Source)
at com.google.firebase.iid.zzd.zzc(Unknown Source)
at com.google.firebase.iid.zzd.getToken(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.getToken(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.zzUo(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceIdService.zza(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceIdService.zzm(Unknown Source)
at com.google.firebase.iid.zzb$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)

Users with the same issue

5 times, 1 year ago
13 times, 1 year ago

Write tip

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