NullPointerException on Firebase Performance Dependency
See original GitHub issueDescribe your environment
- Android Studio version: Android Studio 4.2 Beta 4
- Firebase Component: Performance
- Component version: 19.0.2
Describe the problem
We’ve just included the Firebase Performance Library with dependency version 19.0.2
implementation 'com.google.firebase:firebase-perf:19.0.2'
and Firebase Performace Gradle Plugin Version 1.3.4
classpath 'com.google.firebase:perf-plugin:1.3.4'
Rest no manual code is written at our end for the Firebase Performance library, still, we’re getting an NPE on our Crashlytics, the stack trace for which I’ve added below.
99% of these events occurred on Background, 96% for Xiaomi devices and 91% on Android 9 devices. There are a lot of instances reported for this crash.
Steps to reproduce:
We haven’t added anything explicitly for the Firebase Performance library in our code, hence there are no concrete steps to reproduce, here’s the stack trace of Crashlutics though
at com.google.firebase.perf.internal.zzv.zzh(zzv.java:65)
at com.google.firebase.perf.internal.zzv.<init>(zzv.java:2)
at com.google.firebase.perf.internal.zzf.zzam(zzf.java:47)
at com.google.firebase.perf.internal.zzf.zzc(zzf.java:194)
at com.google.firebase.perf.internal.zze.run(zze.java:2)
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:764)```
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Hi @jposuna…Thanks for your help…Updating the
com.google.firebase:firebase-perf
to19.1.1
removed that crash. This is fixed nowHi @therealshabi, thanks for reporting this.
Before debugging further, can you update the
com.google.firebase:firebase-perf
library to the latest version? https://firebase.google.com/support/release-notes/android#latest_sdk_versions.Version
19.0.2
is from Nov 2019, so it’s likely that this issue is not present in the most recent version.Please let me know if you still have this issue with version
19.1.1
of the Firebase Performance Library.