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

Google Groups | b0b | 9 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.
  1. 0

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

    Google Groups | 9 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