Can we access your project?
Current Behavior
Project name: SHOOTPARK
Current behavior:
FlutterFlow Test Mode always fails with:
“Codegen failed: Null check operator used on a null value”
Stack trace points to:
FFCodeGenerator.requiredImports
WidgetClassFilesGenerator.generateImportCode
Important:
- Run Mode works correctly
- iOS build/TestFlight builds successfully
- APK/real builds compile correctly
- App works on physical devices
The issue only affects FlutterFlow Test Mode.
What I already tried:
- Removed custom actions
- Removed action blocks
- Checked all parameters
- Rebuilt actions
- Cleared browser cache
- Restarted FlutterFlow
- Reopened project
- Fixed all visible errors/warnings
- Verified imports and Firebase references
No visible project errors remain.
The project still compiles successfully outside Test Mode, which suggests corrupted/generated metadata or a Test Mode codegen issue rather than invalid Flutter code.
Expected Behavior
Test Mode should generate code and launch correctly, exactly like Run Mode and production/TestFlight builds.
Steps to Reproduce
- Open the FlutterFlow project “SHOOTPARK”
- Launch Test Mode
- Code generation starts
- Test Mode fails immediately with:
“Null check operator used on a null value”
Additional information:
- Run Mode works correctly
- TestFlight/iOS builds succeed
- Real device builds work correctly
- The issue only affects FlutterFlow Test Mode/codegen
The issue started after modifications involving:
- RevenueCat premium logic
- Custom actions
- Component/page state variables
- C50 session management system
Even after removing problematic actions and fixing visible errors, Test Mode still fails.
Reproducible from Blank
Bug Report Code (Required)
Nothing
Visual documentation
Environment
- FlutterFlow version:
- Platform:
- Browser name and version:
- Operating system and version affected:
Additional Information
No response
Can we access your project?
Current Behavior
Project name: SHOOTPARK
Current behavior:
FlutterFlow Test Mode always fails with:
“Codegen failed: Null check operator used on a null value”
Stack trace points to:
FFCodeGenerator.requiredImports
WidgetClassFilesGenerator.generateImportCode
Important:
The issue only affects FlutterFlow Test Mode.
What I already tried:
No visible project errors remain.
The project still compiles successfully outside Test Mode, which suggests corrupted/generated metadata or a Test Mode codegen issue rather than invalid Flutter code.
Expected Behavior
Test Mode should generate code and launch correctly, exactly like Run Mode and production/TestFlight builds.
Steps to Reproduce
“Null check operator used on a null value”
Additional information:
The issue started after modifications involving:
Even after removing problematic actions and fixing visible errors, Test Mode still fails.
Reproducible from Blank
Bug Report Code (Required)
Nothing
Visual documentation
Environment
Additional Information
No response