Can we access your project?
Current Behavior
When a logged-in user confirms account deletion from the P12-Profilo page, the Firebase Authentication user and the corresponding users document are successfully deleted.
Immediately after the Delete User action completes, the app shows a red error screen with:
“Unexpected null value”
The error-causing widget is reported as:
P12ProfiloWidget
The issue is reproducible every time in Run Mode.
Expected Behavior
After the account is successfully deleted, the user should be signed out and redirected away from P12-Profilo to the app’s unauthenticated entry screen, without any red error screen or runtime exception.
Steps to Reproduce
- Open the app in Run Mode.
- Create a new customer account and complete the login flow.
- Navigate to P12-Profilo.
- Tap “Elimina account”.
- Confirm the deletion in the confirmation dialog.
- The Firebase Authentication user and the corresponding users document are deleted successfully.
- Immediately after deletion, a red error screen appears with “Unexpected null value” and P12ProfiloWidget is reported as the error-causing widget.
Reproducible from Blank
Bug Report Code (Required)
IT4kz/Lq04xOj7xE0JP5bfp4oGARQ1M1TLIFse0aRR4dNZTnOpkMPcz7NkNKQsO+dAl2BVX/hkYJwPDXkobuU/Y4AAWWGr0/0JVAFwzMUlu5V8m4Es2gXn95I9tPBUy707arhhYkKrBaLEIM12WbN63qNleeY8aSfxBlZ7vfcPo=
Visual documentation
The screenshots are already included in the reproduction steps above. No video is available
Environment
- FlutterFlow version: v7.0.51
- Platform: Web
- Browser name and version: Google Chrome 149.0.7827.201
- Operating system and version affected: macOS 15.7.7 (24G720)
Additional Information
This issue affects a core account-management flow. The user is deleted successfully from Firebase Authentication and Firestore, but the app immediately crashes with an “Unexpected null value” error instead of returning to a safe unauthenticated page. I am trying to obtain a clean and reliable account deletion flow that completes without showing an error screen.
Can we access your project?
Current Behavior
When a logged-in user confirms account deletion from the P12-Profilo page, the Firebase Authentication user and the corresponding users document are successfully deleted.
Immediately after the Delete User action completes, the app shows a red error screen with:
“Unexpected null value”
The error-causing widget is reported as:
P12ProfiloWidget
The issue is reproducible every time in Run Mode.
Expected Behavior
After the account is successfully deleted, the user should be signed out and redirected away from P12-Profilo to the app’s unauthenticated entry screen, without any red error screen or runtime exception.
Steps to Reproduce
Reproducible from Blank
Bug Report Code (Required)
IT4kz/Lq04xOj7xE0JP5bfp4oGARQ1M1TLIFse0aRR4dNZTnOpkMPcz7NkNKQsO+dAl2BVX/hkYJwPDXkobuU/Y4AAWWGr0/0JVAFwzMUlu5V8m4Es2gXn95I9tPBUy707arhhYkKrBaLEIM12WbN63qNleeY8aSfxBlZ7vfcPo=
Visual documentation
The screenshots are already included in the reproduction steps above. No video is available
Environment
Additional Information
This issue affects a core account-management flow. The user is deleted successfully from Firebase Authentication and Firestore, but the app immediately crashes with an “Unexpected null value” error instead of returning to a safe unauthenticated page. I am trying to obtain a clean and reliable account deletion flow that completes without showing an error screen.