NullPointerException on FirebaseInstallations.registerFidWithServer
See original GitHub issueEnvironment
- Android Studio version:
3.6.3
- Firebase Component:
firebase-analytics
,firebase-messaging
,firebase-config
,firebase-crashlytics
->firebase-installations
- Component version:
firebase-analytics:17.4.3
,firebase-messaging:20.2.1
,firebase-config:19.1.4
,firebase-crashlytics:17.1.0
->firebase-installations:16.3.2
Description
Crashlytics reported some crashes on some OnePlus 6 devices with Android 10 on 19/07/2020.
Stacktrace
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at com.google.firebase.installations.FirebaseInstallations.registerFidWithServer(FirebaseInstallations.java:452)
at com.google.firebase.installations.FirebaseInstallations.doNetworkCallIfNecessary(FirebaseInstallations.java:331)
at com.google.firebase.installations.FirebaseInstallations.lambda$doGetId$1(FirebaseInstallations.java:296)
at com.google.firebase.installations.FirebaseInstallations$$Lambda$3.run(FirebaseInstallations.java:2000)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:21 (8 by maintainers)
Top Results From Across the Web
android - NullPointerException on FirebaseInstallations ...
I am experiencing the following crash on an Android app using Firebase analytics: Exception java.lang.NullPointerException: Attempt to ...
Read more >Bug: NPE on FirebaseInstallations class [166291459]
Recently I got this crash: Fatal Exception: java.lang.NullPointerException at com.google.firebase.installations.FirebaseInstallations.
Read more >Firebase Nullpointer Exception - ADocLib
36 crash reports coming in of a crash with FirebaseInstallations.registerFidWithServer NullPointerException: Attempt to invoke virtual method 'int java.lang ...
Read more >NullPointerException (Java Platform SE 7 ) - Oracle Help Center
public class NullPointerException extends RuntimeException. Thrown when an application attempts to use null in a case where an object is required.
Read more >NullPointerException - Android Developers
android.app.appsearch.observer. Overview. Interfaces. ObserverCallback. Classes. DocumentChangeInfo · ObserverSpec · ObserverSpec.Builder · SchemaChangeInfo.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@searchy2 That’s highly likely. Do you or others who are reporting crash clear the shared prefs?
@wugeo0824 We are rolling out a fix this week which should be released either by Friday or Monday next week. Updating to the latest version of FCM releasing this week should fix the issue.
Hi @francescocervone this issue was addressed in #1714 but we haven’t made a release including with the fix yet. I’ll keep this issue updated when the fix is out in a release.