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

Solutions on the web

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 Utif Milkedori
, 1 year ago
Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
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 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.zzkl(Unknown Source)
at com.google.firebase.iid.zzg.zzh(Unknown Source)
at com.google.firebase.iid.zzd.zzb(Unknown Source)
at com.google.firebase.iid.zzd.zzcxa(Unknown Source)
at com.google.firebase.iid.zzd.zzbmu(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.zzcww(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceIdService.zzaa(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:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

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

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