Firebase Remote Config : NullPointerException on Map.keySet()

前端 未结 2 1489
别那么骄傲
别那么骄傲 2020-12-17 02:30

I am getting the following crash for a lot of users :

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method \'java.util.Set jav         


        
相关标签:
2条回答
  • 2020-12-17 03:04

    The bug @Ευάγγελος pointed out was fixed in version 15.0.0. However, that version introduced another bug that was also causing NullPointerException. Fortunately, it was quickly fixed in 15.0.2.

    0 讨论(0)
  • 2020-12-17 03:07

    As stated in Kirril Karmizin's comment, it's a known bug since June 2017 (Github Firebase issues). I also received multiple crash reports

    Fatal Exception: java.lang.NullPointerException
       at com.google.android.gms.internal.zzdyx.zzb(Unknown Source)
       at com.google.android.gms.internal.zzdyx.zza(Unknown Source)
       at com.google.android.gms.internal.zzfan.run(Unknown Source)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:848)
    

    , with:

    • Firebase: 12.0.1
    • buildTools: 27.0.3

    A probable step in the right direction for those that would want to keep Remote Config in their apps can be found in Official RemoteConfic docs:

    You should set in-app default parameter values in the Remote Config object, so that your app behaves predictably before it fetches values from the Remote Config service.

    For me, I could not risk more crash reports in a production app. I removed Remote Config and I've seen no crashes until now.

    0 讨论(0)
提交回复
热议问题