Closed
Description
I'm getting 100s of NPEs from sending push notifications. My suspicion is that it has something to do with the image push notifications that Firebase now supports.
These crashes don't seem to be user facing which is good. Unfortunately, Google counts crashes in app store rankings so I'm scared about the amount of crashes I'm getting.
Here's the crash logs:
java.lang.NullPointerException:
at com.android.okhttp.okio.Buffer.write (Buffer.java:1182)
at com.android.okhttp.okio.Buffer.read (Buffer.java:1221)
at com.android.okhttp.okio.RealBufferedSource.read (RealBufferedSource.java:65)
at com.android.okhttp.internal.http.Http1xStream$FixedLengthSource.read (Http1xStream.java:602)
at com.android.okhttp.internal.Util.skipAll (Util.java:172)
at com.android.okhttp.internal.Util.discard (Util.java:154)
at com.android.okhttp.internal.http.Http1xStream$FixedLengthSource.close (Http1xStream.java:619)
at com.android.okhttp.okio.RealBufferedSource.close (RealBufferedSource.java:421)
at com.android.okhttp.okio.RealBufferedSource$1.close (RealBufferedSource.java:409)
at com.google.android.gms.internal.firebase_messaging.zzk.zza
at com.google.firebase.messaging.zzi.close
at com.google.firebase.messaging.zzb.zza
at com.google.firebase.messaging.FirebaseMessagingService.zzc
at com.google.firebase.messaging.zzg.run
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.zza.run (Unknown Source:6)
at java.lang.Thread.run (Thread.java:764)
This error occurs on a range of devices.
I'm sending the notifications from the Firebase console and using the latest Firebase Messaging SDK v19.0.1