[firebase_auth]: com.google.firebase.auth.internal.zzcb.zzd java.lang.NullPointerException - Attempt to invoke virtual method 'java.lang.String O8.e.e()' on a null object reference
Closed this issue · 4 comments
Environment
- Flutter SDK 3.32.8
- Firebase Core 4.0.0, Firebase Auth 6.0.0
Problem
- Faced crashes reported via Firebase Crashltyics.
Issue was first opened at Flutterfire firebase/flutterfire#17650
I found a few problems with this issue:
- I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
- This issue does not seem to follow the issue template. Make sure you provide all the required information.
Hi @rohansohonee1, thank you for reaching out and raising the issue. Based on the stack trace you shared, the error is due to a NullPointerException because the FirebaseUser object is possibly corrupted or has null value.
Please note, the firebase-auth version you’re using has a regression. I highly suggest updating your app to use v24.0.1+ instead. See our release notes here.
That said, I’ll be closing this thread for now. If the issue persists, please file a new ticket along with the details that can help us investigate the issue. Thank!
@lehcar09 Hi, the flutterfire team said they use the version 34.0.0 of Firebase Android SDK.
See:
https://github.com/firebase/flutterfire/blob/main/packages/firebase_core/firebase_core/android/gradle.properties#L2
For this case, will the app be using v24.0.1+?
@lehcar09 It seems that flutterfire has to update their Firebase Android SDK to 34.1.0, after which firebase_auth will use version 24.0.1 right?
I found the firebase-auth versions in this file build/app/outputs/sdk-dependencies/release/sdkDependencies.txt when using flutterfire firebase_core v4.0.0 which uses Firebase android sdk 34.0.0
maven_library {
groupId: "com.google.firebase"
artifactId: "firebase-auth"
version: "24.0.0"
}
maven_library {
groupId: "com.google.firebase"
artifactId: "firebase-auth-interop"
version: "20.0.0"
}