quickstart-android: NullPointerException from FirebaseRemoteConfig.getInstance()

I’m seeing crashes in Crashlytics for most recent Firebase Remote Config (15.0.0) Inside Application.onCreate FirebaseRemoteConfig.getInstance is called.

It produces crash:

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)
==== app's part
by.stari4ek.config.ConfigFirebase. (ConfigFirebase.java:90)

Firebase version:

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

This is new issue introduced with 15.0.0. I didn’t have it with previous versions

Devices (all are android tv):

  • Xiaomi, Asus, Sony
  • Android 5/6/7

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 10
  • Comments: 40 (10 by maintainers)

Most upvoted comments

Hi everyone, this should be fixed in version 15.0.2. Thank you all for reporting!

FWIW, I’m getting the same crash after upgrading to 15.0.0

There is a new version of Remote Config with version 15.0.2. I couldnt find any release note for it. Does this have fix for this issue?