Flutterfire: plugin firebase_auth throws error on _onAuthStageChangedHandler

Created on 13 Oct 2019  路  4Comments  路  Source: FirebaseExtended/flutterfire

_onAuthStageChangedHandler() throws an exception when the currentUser is null in:

_authStateChangedControllers[id].add(currentUser);

Exception:

NoSuchMethodError: The method 'add' was called on null.
Receiver: null
Tried calling: add(null)

Screen Shot 2019-05-10 at 13 51 07

customer-response

Most helpful comment

@herkulano

The issue at https://github.com/flutter/flutter/issues/32482 has been closed and moved here. Future collaboration on this issue will be done here.

All 4 comments

@herkulano

The issue at https://github.com/flutter/flutter/issues/32482 has been closed and moved here. Future collaboration on this issue will be done here.

Hi @herkulano
are you still experiencing this issue with the latest version of Flutter firebase_auth?
If so can you please provide your flutter doctor -v?
Also, to better address the issue, would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you

I no longer have the issue, I don't know when it stopped, but it was some time ago.

Hi @herkulano
I'm glad you solved the issue,
thank you for letting me know

Was this page helpful?
0 / 5 - 0 ratings