控制台中的NullPointerException

控制台中的NullPointerException

本文介绍了Firebase崩溃库 - 控制台中的NullPointerException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实施了新的Firebase Crash库(



解决方案

由Google证实,这是InstanceID库中的错误。



现在你所能做的就是更新到最新的版本,希望这个版本能被修复。 >

  compile'c​​om.google.firebase:firebase-crash:9.4.0'
pre>

注意#1

您可以在评论中看到有些人仍然得到这个错误。目前我们只能更新到最新版本。如果您已经使用以前的版本 - 更新到最新版本。我们需要Firebase团队提供的信息。



注意#2
这似乎是固定在9.4.0,但我们仍然需要确认

I've implemented the new Firebase Crash library (https://github.com/firebase/quickstart-android/tree/master/crash) to log error in Android app.

Anyone is having similar problem.

I'm checking errors and on the top I've got:

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
android.util.Base64.decode (Base64.java:118)
com.google.firebase.iid.zzg.zzeH (zzg.java:)
com.google.firebase.iid.zzg.zzeE (zzg.java:)
com.google.firebase.iid.zzd.zzCd (zzd.java:)
com.google.firebase.iid.zzd.zzc (zzd.java:)
com.google.firebase.iid.zzd.getToken (zzd.java:)
com.google.firebase.iid.FirebaseInstanceId.getToken (FirebaseInstanceId.java:)
com.google.firebase.iid.FirebaseInstanceId.zzUo (FirebaseInstanceId.java:)
com.google.firebase.iid.FirebaseInstanceIdService.zza (FirebaseInstanceIdService.java:)
com.google.firebase.iid.FirebaseInstanceIdService.zzm (FirebaseInstanceIdService.java:)
com.google.firebase.iid.zzb$2.run (zzb.java:)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
java.lang.Thread.run (Thread.java:818)

I have checked but there are not extra proguard rules for Firebase Crash.Is it bug in the library? Anyone is having similar problem?

I can't reproduce error on my devices.

The error is strange and I don't know in which place in the application. Nothing so I think it's connected to Crash library.

This is not standard nullexception. It's connected to Firebase Crash library. Why I'm thinking this is library bug - there is no sign on my code/activity here.

解决方案

It was confirmed by Google that this was bug in the InstanceID library.

All you can do right now is to update to the latest version and hope this will be fixed.

compile 'com.google.firebase:firebase-crash:9.4.0'

Note #1

You can see in the comments that some people are still getting this error. At the moment we can't do nothing more than update to the latest version. If you've been using previous version - update to the latest. We need info from Firebase team about it.

Note #2This seems to be fixed in 9.4.0 but we still need confirmation

这篇关于Firebase崩溃库 - 控制台中的NullPointerException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 11:02