OTTAA-Project / OTTAAProject

Join us to create the first Augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
5 stars 2 forks source link

[Bug]: User.java line 144 #161

Closed gonojuarez closed 1 year ago

gonojuarez commented 1 year ago

Contact Details

gonojuarez17@gmail.com

What happened?

A bug happens! When the system requests the user id in firebase & He isn't authenticated.

Version

6.7.x (Production)

Where are you seeing the problem on?

Android

Relevant log output

Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
       at android.os.AsyncTask$3.done(AsyncTask.java:353)
       at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
       at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
       at java.util.concurrent.FutureTask.run(FutureTask.java:271)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.f.k0()' on a null object reference
       at com.stonefacesoft.ottaa.utils.preferences.User.getUserUid(User.java:144)
       at com.stonefacesoft.ottaa.JSONutils.Json0Recover.backupPictogram0(Json0Recover.java:60)
       at com.stonefacesoft.ottaa.Principal$loadPictograms.doInBackground(Principal.java:2422)
       at com.stonefacesoft.ottaa.Principal$loadPictograms.doInBackground(Principal.java:2410)
       at android.os.AsyncTask$2.call(AsyncTask.java:333)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

Code of Conduct