You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not able to reproduce - but I get dozens of crash reports from live usage.
I have no idea how users even get to the profile screen when currentUser is null.
Given that its somewhat rare I would suspect a corner case like deleting the account or some odd action like that.
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value. Error thrown .
at ProfileScreen.buildPage(profile_screen.dart:809)
at ConversionSink.add(conversion_sink.dart:8)
at StatelessElement.build(framework.dart:5550)
...
So it appears that there are some cases where currentUser is null
final user = auth.currentUser!;
Expected Behavior
Maybe just show text saying not logged in?
Actual Behavior
An exception is thrown
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Hey @reimager - It would be extremely helpful if you could provide a reproduction so we can properly diagnose the issue and get this resolved.
It would also be useful if you could provide the platform this is occurring on. It might be worth adding some logging around the sign in process and the profile to see when this occurs to help with the reproduction.
I get this error when signing out from ProfileScreen if anything else besides Navigator is called.
Even if a listener like above post exist. I just need some way to trigger UI changes if the user sign out.
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
No response
List of dependencies used.
flutter pub deps -s list
dev dependencies:
transitive dependencies:
Steps to reproduce
I'm not able to reproduce - but I get dozens of crash reports from live usage.
I have no idea how users even get to the profile screen when currentUser is null.
Given that its somewhat rare I would suspect a corner case like deleting the account or some odd action like that.
So it appears that there are some cases where currentUser is null
Expected Behavior
Maybe just show text saying not logged in?
Actual Behavior
An exception is thrown
Additional Information
No response
The text was updated successfully, but these errors were encountered: