Open aaronmt93 opened 1 week ago
Hello!
Thank you for bringing this issue to our attention. I will pass it along to the engineering team for review and a potential fix.
This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.
Can we access your project?
Current Behavior
Using a filter to get a number of items from a list of documents. This is a new field in my app so not all documents have this field in firebase. However, instead of the filter conditions defaulting to false when I set the default values, I get a null and the page has a giant red error screen breaking the UI.
Expected Behavior
If the fields dont exist, the filters should return false without resulting in a breaking change
Steps to Reproduce
Reproducible from Blank
Bug Report Code (Required)
IT4gismBy4x1obhK7aX6bu9V/T04JWIhaJc0rNlud0wdCePpEYkXds/CSxJtSOqHTH5YHmH9hk40+ujIjYSWKvZdNTWWQbpM/pBfUxDiIVGRVZS6BqiSQUcnJ+RnIBWD5re3rwhAVfFtL0I16mWUCdiuY3qCf9qOYwx5e6fDbOY=
Visual documentation
visual of the error
The following _TypeError was thrown building StreamBuilder<UsersRecord?>(dirty, state: _StreamBuilderBaseState<UsersRecord?, AsyncSnapshot<UsersRecord?>>#015e9): Null check operator used on a null value
visual of how the the setup looked for the filter in widget tree
Environment
Additional Information
if ever a field is null in the database and a page references that field, results in a complete break in the UI of the app