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

Google Groups | b0b | 12 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Internal function in com.google.firebase.iid package triggers NPE in android.util.Base64.decode() on some device

    Google Groups | 12 months ago | b0b
    ava.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference

    Root Cause Analysis

    1. ava.lang.NullPointerException

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

      at android.util.Base64.decode()
    2. Android Platform
      Base64.decode
      1. android.util.Base64.decode(Base64.java:118)
      1 frame
    3. com.google.firebase
      b$2.run
      1. com.google.firebase.iid.g.f(Unknown Source)
      2. com.google.firebase.iid.g.c(Unknown Source)
      3. com.google.firebase.iid.d.a(Unknown Source)
      4. com.google.firebase.iid.d.c(Unknown Source)
      5. com.google.firebase.iid.d.b(Unknown Source)
      6. com.google.firebase.iid.FirebaseInstanceId.a(Unknown Source)
      7. com.google.firebase.iid.FirebaseInstanceId.f(Unknown Source)
      8. com.google.firebase.iid.FirebaseInstanceIdService.a(Unknown Source)
      9. com.google.firebase.iid.FirebaseInstanceIdService.b(Unknown Source)
      10. com.google.firebase.iid.b$2.run(Unknown Source)
      10 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames