firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

ExceptionInInitializerError when app in background

Open yosefBazaart opened this issue 1 year ago • 5 comments

[READ] Step 1: Are you in the right place?

yes

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Giraffe | 2022.3.1 Patch 1
  • Firebase Component: Database/Storage/Analytics (unknown)
  • Component version: firebase-bom:32.2.3

[REQUIRED] Step 3: Describe the problem

In the Play Store console we are getting a crash report in firebase sdk, not clear what is causing it but it only started to occur in the version that we updated the firebase sdk from 28.3.0 to 32.2.3

Steps to reproduce:

there is no way to reproduce it, it also occcur 100% of the times when the app is in the background. attaching the stack trace from the console:

Exception java.lang.ExceptionInInitializerError: at com.google.android.datatransport.runtime.scheduling.persistence.EventStoreModule.storeConfig (EventStoreModule.java) at com.google.android.datatransport.runtime.scheduling.persistence.EventStoreModule_StoreConfigFactory.storeConfig (EventStoreModule_StoreConfigFactory.java) at com.google.android.datatransport.runtime.scheduling.persistence.EventStoreModule_StoreConfigFactory.get (EventStoreModule_StoreConfigFactory.java) at com.google.android.datatransport.runtime.scheduling.persistence.EventStoreModule_StoreConfigFactory.get (EventStoreModule_StoreConfigFactory.java) at com.google.android.datatransport.runtime.dagger.internal.DoubleCheck.get (DoubleCheck.java) at com.google.android.datatransport.runtime.scheduling.SchedulingModule_WorkSchedulerFactory.get (SchedulingModule_WorkSchedulerFactory.java) at com.google.android.datatransport.runtime.scheduling.SchedulingModule_WorkSchedulerFactory.get (SchedulingModule_WorkSchedulerFactory.java) at com.google.android.datatransport.runtime.scheduling.DefaultScheduler_Factory.get (DefaultScheduler_Factory.java) at com.google.android.datatransport.runtime.scheduling.DefaultScheduler_Factory.get (DefaultScheduler_Factory.java) at com.google.android.datatransport.runtime.dagger.internal.DoubleCheck.get (DoubleCheck.java) at com.google.android.datatransport.runtime.TransportRuntime.getInstance (TransportRuntime.java) at com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService.onStartJob (JobInfoSchedulerService.java) at android.app.job.JobService$1.onStartJob (JobService.java:68) at android.app.job.JobServiceEngine$JobHandler.handleMessage (JobServiceEngine.java:105) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loopOnce (Looper.java:226) at android.os.Looper.loop (Looper.java:313) at android.app.ActivityThread.main (ActivityThread.java:8810) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067) Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference at com.google.android.datatransport.runtime.scheduling.persistence.EventStoreConfig.builder (EventStoreConfig.java) at com.google.android.datatransport.runtime.scheduling.persistence.EventStoreConfig.<clinit> (EventStoreConfig.java)

yosefBazaart avatar Sep 13 '23 08:09 yosefBazaart