Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting this error when I am clicking on Users #4

Open
adetheprince opened this issue Dec 29, 2020 · 2 comments
Open

I am getting this error when I am clicking on Users #4

adetheprince opened this issue Dec 29, 2020 · 2 comments

Comments

@adetheprince
Copy link

The app closes with error and chat is empty always, I tried to create but cant see any.

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.LearnBravanese.Kids, PID: 8283
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at com.example.socialmediaapp.fragments.UsersFragment$1.onDataChange(UsersFragment.java:79)
at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.0.0:75)
at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.0.0:63)
at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.0.0:55)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

@adetheprince
Copy link
Author

I am sure my google Json is wrong any help please?

@Anni1123
Copy link
Owner

Anni1123 commented Mar 11, 2021

Yes , I found that what you are saying is right..This is happening because some users just registered but didnt updated their name in profile section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants