Skip to content

Delete User causes "Unexpected null value" in P12ProfiloWidget after successful account deletion #7325

Description

@tavlo-founder

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

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

  1. Open the app in Run Mode.
  2. Create a new customer account and complete the login flow.
  3. Navigate to P12-Profilo.
  4. Tap “Elimina account”.
  5. Confirm the deletion in the confirmation dialog.
  6. The Firebase Authentication user and the corresponding users document are deleted successfully.
  7. Immediately after deletion, a red error screen appears with “Unexpected null value” and P12ProfiloWidget is reported as the error-causing widget.
Image Image

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions