Skip to content

NullPointerException on FirebaseInstallations.registerFidWithServer #1787

@francescocervone

Description

@francescocervone

Environment

  • 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)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions