I have received this in Crash Reporting in production on the above two devices. In both cases the devices were in Connection State: Disconnected
Not sure if this is during an app update or on app launch. Since the devices are disconnected I would think it would not be during an update.
Crash Report details:
Exception java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } in com.google.firebase.iid.zzae@ad32ca6
android.app.LoadedApk$ReceiverDispatcher$Args.run (LoadedApk.java:1172)
android.os.Handler.handleCallback (Handler.java:751)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6247)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:872)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:762)
arrow_drop_down
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.net.NetworkInfo.isConnected()' on a null object reference
com.google.firebase.iid.zzad.zzchr ()
com.google.firebase.iid.zzae.onReceive ()
android.app.LoadedApk$ReceiverDispatcher$Args.run (LoadedApk.java:1162)
android.os.Handler.handleCallback (Handler.java:751)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6247)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:872)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:762)
I've the same problem in my app, not related to a specific device or Android version.
Crashlytics reports 228 crashes on 134 users since last week, when I updated to Firebase/Play Services 11.6.0.
Yesterday I updated the libs to 11.6.2 but didn't solve the problem, my users are still experiencing the same problem.
One of the hundreds of crash report details:
Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } bqHint=1 (has extras) } in com.google.firebase.iid.f@e036af0
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1195)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.net.NetworkInfo.isConnected()' on a null object reference
at com.google.firebase.iid.zzad.zzchr(Unknown Source)
at com.google.firebase.iid.zzae.onReceive(Unknown Source)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1185)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Thank you both for the report. I looked into the source code of the iid module and I don't see any calls to isConnected() not guarded by a null check but I will follow up with the team anyway and see what I might be missing.
@opus1269 @mengoni thanks for reporting this! I can confirm that we identified the issue and have a fix that will be included in the next release of the Firebase / Play services SDKs. I can't promise an exact date, but should be before the end of the year if all goes well.
I am going to close this issue now as there's nothing more that can be done in the context of the quickstart-android repo.
@samtstern is it fixed on Firebse 11.8.0?
@opus1269 @mengoni @amorenew @jackcsk this issue is fixed in 11.8.0
Problem still persists on 11.8.0.
compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.firebase:firebase-messaging:11.8.0'
compile('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
transitive = true
}
Device states: 100% In background
Same here in 11.8.0, 98% in background
@rafid059 @disav1 I am surprised to hear that you're still seeing this issue in 11.8.0. Could either of you provide some additional crash logs? Whatever you have would be helpful.
Is this fixed in 12.0.0?
Most helpful comment
@opus1269 @mengoni @amorenew @jackcsk this issue is fixed in
11.8.0