我尝试在字段中输入西里尔字母后,Firebase停止响应

时间:2019-04-08 19:56:32

标签: android firebase firebase-storage

我完成了一个应用,该应用使用上载图像以及标题和描述到Firebase,然后将其提取。完整的应用程序可以在以下位置找到: https://github.com/bubval/Gallery-Image-Upload-Application-With-Firebase

今晚,我尝试发表一篇在标题和说明中包含西里尔字母的帖子。然后一切都停止了工作。照片已上传到存储设备,但现在未上传到数据库。

如前所述,它在此之前运行良好。希望我可以在firebase控制台中做一些事情,或者可能有代码解决方案。感谢您的帮助

   2019-04-08 22:46:31.284 21562-21615/com.example.imageuploadapplication 
   E/StorageUtil: error getting token 
   java.util.concurrent.ExecutionException:        
   com.google.firebase.internal.api.FirebaseNoSignedInUserException: 
   Please sign in before trying to get a token.
   2019-04-08 22:46:31.287 21562-21615/com.example.imageuploadapplication 
   W/NetworkRequest: no auth token for request
   2019-04-08 22:46:32.052 21562-21615/com.example.imageuploadapplication 
   E/StorageUtil: error getting token 
   java.util.concurrent.ExecutionException: 
   com.google.firebase.internal.api.FirebaseNoSignedInUserException: 
   Please sign in before trying to get a token.
   2019-04-08 22:46:32.056 21562-21615/com.example.imageuploadapplication 
   W/NetworkRequest: no auth token for request
   2019-04-08 22:46:33.432 21562-21621/com.example.imageuploadapplication 
   E/StorageUtil: error getting token 
   java.util.concurrent.ExecutionException: 
   com.google.firebase.internal.api.FirebaseNoSignedInUserException: 
   Please sign in before trying to get a token.
   2019-04-08 22:46:33.436 21562-21621/com.example.imageuploadapplication 
   W/NetworkRequest: no auth token for request
   2019-04-08 22:46:33.763 21562-21562/com.example.imageuploadapplication 
   D/AndroidRuntime: Shutting down VM
   2019-04-08 22:46:33.764 21562-21562/com.example.imageuploadapplication E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.imageuploadapplication, PID: 21562
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference
    at com.example.imageuploadapplication.MainActivity$6.onSuccess(MainActivity.java:204)
    at com.example.imageuploadapplication.MainActivity$6.onSuccess(MainActivity.java:181)
    at com.google.firebase.storage.StorageTask.lambda$new$0(com.google.firebase:firebase-storage@@16.1.0:125)
    at com.google.firebase.storage.StorageTask$$Lambda$1.raise(Unknown Source:6)
    at com.google.firebase.storage.TaskListenerImpl.lambda$onInternalStateChanged$2(com.google.firebase:firebase-storage@@16.1.0:94)
    at com.google.firebase.storage.TaskListenerImpl$$Lambda$3.run(Unknown Source:6)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6718)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

0 个答案:

没有答案