Skip to content

QuizPage-only Test Mode crash: generated auth StreamBuilder throws Unexpected null value #7428

Description

@mcmsp08-ui

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

Project: NJROTC Academy V2
Project ID: n-j-r-o-t-c-academy-v2-i46z6w

At a 393 x 852 Test Mode viewport, QuizPage alone opens and then fails before rendering its first question.

Runtime error:

Unexpected null value
Error-causing widget: StreamBuilder

First application-level generated stack locations:

firebase_auth_manager.dart.lib.js approximately 2530:3177
firebase_auth_manager.dart.lib.js approximately 2575:25
then cupertino/text_form_field_row.dart

The compiled runtime does not identify the null-checked variable. QuizPage contains no editable TextFormField or TextFormFieldRow, so the TextFormFieldRow frame does not correspond to an editable QuizPage widget.

Authenticated control pages load normally in the same session: Home, Study, Progress, Settings, and Profile. Profile dynamically resolves the authenticated user's name, rank, and Student ID. This is therefore not a global Firebase-authentication failure.

QuizPage data was independently verified:

  • runQuestionRefs is non-null with 5 valid questions document references.
  • currentQuestionRef is non-null.
  • currentIndex is 0.
  • Referenced question documents exist and are active.
  • Prompt and optionA/B/C/D are bound through columnQuestionsRecord.
  • The Signals active query returns at least five questions.
  • The navigation guard is true and QuizPage opens.
  • No custom-code or generated-Dart modifications were used.

Additional history:

  • An unused page-level questions query was temporarily removed, then immediately restored after optionB-D became [Unknown].
  • Main Column Generate Children from Variable = UNSET was removed; the same error remained.
  • QuizPage has no auth/profile bindings and no page-load actions.
  • Conditional visibility uses answered page state, not auth state.

Expected Behavior

QuizPage should build from currentQuestionRef, render the first real synthetic question and all four answer choices, and show Question 1 of 5 without a generated StreamBuilder null-check failure.

Steps to Reproduce

  1. Open NJROTC Academy V2 in FlutterFlow Test Mode.
  2. Set the viewport to 393 x 852.
  3. Authenticate with any valid V2 test user that has a populated cadetProfiles record.
  4. Open Study.
  5. Select Signals.
  6. On PracticePage, select Quick Practice (5).
  7. Observe that the active query returns at least five matching questions and navigation reaches QuizPage.
  8. Observe QuizPage fail before the first question renders with Unexpected null value.
  9. Compare by opening Home, Study, Progress, Settings, and Profile; those authenticated pages load normally.

Reproducible from Blank

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

Bug Report Code (Required)

FlutterFlow Get Bug Report Code produced no retrievable clipboard value in the current web editor session. Affected page: QuizPage. Project access is granted for investigation.

Visual documentation

The active Test Mode session expired before the error screen could be attached. The visible red error screen reported:

Unexpected null value
Error-causing widget: StreamBuilder

The generated stack locations and complete reproduction path are included above.

Environment

- FlutterFlow version: Web editor production release observed 2026-08-25
- Platform: FlutterFlow Web Test Mode
- Browser: Google Chrome
- Operating system: Windows
- Test viewport: 393 x 852
- Project ID: n-j-r-o-t-c-academy-v2-i46z6w

Additional Information

Phase 2 quiz work is blocked because the first question cannot render. Supported FlutterFlow/browser diagnostics could not identify the anonymous null-checked generated value.

FlutterFlow staff are authorized to access and test NJROTC Academy V2 only (project ID n-j-r-o-t-c-academy-v2-i46z6w) solely to investigate this issue. This permission does not extend to V1 or any unrelated project. No cadet credentials, passwords, recovery information, or private user data are included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageA potential issue that has not been confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions