NPE on FirebasePerfUrlConnection.instrument(FirebasePerfUrlConnection.java:13)
Step 1: Describe your environment
- Android device: Galaxy J7,Grand Prime, S5
- Android OS version:android 6,5,7,9
- Google Play Services version: Not Known
- Firebase/Play Services SDK version: Not Known
Step 2: Describe the problem:
Observing many crashes happening from Performance plugin in Firebase crashlytics console.
Steps to reproduce:
Not able to reproduce on testing device
Observed Results:
- Caused by java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator
Crashlytics Logs
Fatal Exception: java.lang.ExceptionInInitializerError
at com.google.firebase.perf.internal.GaugeManager.
java.util.List.iterator()' on a null object reference
at com.google.firebase.perf.internal.zzp.
Expected Results:
- Should not crash
Relevant Code:
apply plugin: 'com.google.firebase.firebase-perf'
implementation "com.google.firebase:firebase-perf:16.2.2"
classpath "com.google.firebase:firebase-plugins:1.1.5"
This issue does not seem to follow the issue template. Make sure you provide all the required information.
I also have the same issue