Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE on FirebasePerfUrlConnection.instrument(FirebasePerfUrlConnection.java:13) #975

Open
khalid64927 opened this issue Oct 17, 2019 · 2 comments

Comments

@khalid64927
Copy link

khalid64927 commented Oct 17, 2019

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.(GaugeManager.java:5)
at com.google.firebase.perf.internal.GaugeManager.zzbf(GaugeManager.java:22)
at com.google.android.gms.internal.firebase-perf.zzat.(zzat.java:2)
at com.google.android.gms.internal.firebase-perf.zzat.zza(zzat.java:1)
at com.google.firebase.perf.network.FirebasePerfUrlConnection.instrument(FirebasePerfUrlConnection.java:13)
at com.adobe.mobile.RequestHandler.requestConnect(RequestHandler.java:390)
at com.adobe.mobile.RequestHandler.retrieveAnalyticsRequestData(RequestHandler.java:246)
at com.adobe.mobile.AnalyticsWorker$1.run(AnalyticsWorker.java:304)
at java.lang.Thread.run(Thread.java:818)


java.util.List.iterator()' on a null object reference
at com.google.firebase.perf.internal.zzp.(zzp.java:16)
at com.google.firebase.perf.internal.zzp.(zzp.java:6)
at com.google.firebase.perf.internal.zzp.(zzp.java:47)
at com.google.firebase.perf.internal.GaugeManager.(GaugeManager.java:5)
at com.google.firebase.perf.internal.GaugeManager.zzbf(GaugeManager.java:22)
at com.google.android.gms.internal.firebase-perf.zzat.(zzat.java:2)
at com.google.android.gms.internal.firebase-perf.zzat.zza(zzat.java:1)
at com.google.firebase.perf.network.FirebasePerfUrlConnection.instrument(FirebasePerfUrlConnection.java:13)
at com.adobe.mobile.RequestHandler.requestConnect(RequestHandler.java:390)
at com.adobe.mobile.RequestHandler.retrieveAnalyticsRequestData(RequestHandler.java:246)
at com.adobe.mobile.AnalyticsWorker$1.run(AnalyticsWorker.java:304)
at java.lang.Thread.run(Thread.java:818)

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"

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@xncHung
Copy link

xncHung commented Dec 11, 2019

I also have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@khalid64927 @xncHung @google-oss-bot and others