question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullPointerException on FirebaseInstallations.registerFidWithServer

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
ankitaj224commented, Jul 28, 2020

@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.

4reactions
rlazocommented, Jul 20, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found