Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FirebaseRemoteConfig.getInstance crashes with NullPointerException

I'm seeing bunch of crashes inside Crashlitics which are coming from most recent Firebase 15.0.0 on attempt to get FirebaseRemoteConfig

Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'void com.google.android.gms.internal.config.zzar.zzc(long)' on a null object reference
com.google.firebase.remoteconfig.FirebaseRemoteConfig. (Unknown Source)
com.google.firebase.remoteconfig.FirebaseRemoteConfig.getInstance (Unknown Source)
com.google.firebase.remoteconfig.FirebaseRemoteConfig.getInstance (Unknown Source)

FirebaseRemoteConfig.getInstance is called during Application.onCreate and it worked fine on all previous versions.

Build:

implementation "com.google.firebase:firebase-config:15.0.0"
classpath 'com.google.gms:google-services:3.2.1'

Does anyone see it? Any solutions or workarounds?

P.S. I've sent bug report to firebase team via https://firebase.google.com/support/contact/bugs-features/ https://github.com/firebase/quickstart-android/issues/474

like image 371
Michael Sotnikov Avatar asked Oct 16 '22 19:10

Michael Sotnikov


1 Answers

According to https://github.com/firebase/quickstart-android/issues/474 is't fixed with 15.0.2 update to Firebase RemoteConfig

like image 129
Michael Sotnikov Avatar answered Oct 21 '22 01:10

Michael Sotnikov