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

NoSuchMethodError: The method '[]' was called on null. #22

Open
brhomapps opened this issue Oct 23, 2022 · 0 comments
Open

NoSuchMethodError: The method '[]' was called on null. #22

brhomapps opened this issue Oct 23, 2022 · 0 comments

Comments

@brhomapps
Copy link

brhomapps commented Oct 23, 2022

this summery of errors

When I send a request to create a chat and the other person agrees to it, an error appears in the message screen.
And when I searched for the cause of the error, I found that in the collection of rooms > members in Firebase, the receiver ID is not obtained! it's null, And when I add the sender ID manually, the problem is solved, so please help me how to get the receiver ID in the members automatically??

I/flutter (22322): NoSuchMethodError: The method '[]' was called on null.
I/flutter (22322): Receiver: null
I/flutter (22322): Tried calling:

look at the image

screen shut of firebase
(https://drive.google.com/file/d/1cUbGYR_VBYddoRR4Vc2UhGcI3UvLaZ78/view?usp=sharing)

screen shut of emulator
(https://drive.google.com/file/d/17do-Wilzw0Oh84mYzDJ0OLfi2H0i-D4_/view?usp=sharing)

screen shut of android studio
(https://drive.google.com/file/d/1_m1rvh1xYpG8V746694iDhtsSHvlxyE5/view?usp=sharing)

@brhomapps brhomapps closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2022
@brhomapps brhomapps reopened this Oct 25, 2022
@brhomapps brhomapps changed the title please help i can't get id of sender NoSuchMethodError: The method '[]' was called on null. Oct 25, 2022
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

1 participant