Null Error - Firebase Query Filtering

Database & APIs

Did Flutter Flow Change anything in recent update related to firestore queries & null return values? I am getting a Null / No Element error:

  1. Sort List items - Based on Edited time (this field exists)

  2. Filter List Items - stripe_subscription_plan_id (Firebase doc field) == BasicPlanMontlyStripe (Project Constant)

  3. Item at Index - Last : Here is where we get a Null value, as filter returns no matching documents in the Subscribers collection from point 2) above

  4. Get Document Property - stripe_failure_code - this will not be executed since there was no item at index last

How do I handle the above scenario. I would like to check if there is any document with the filter as described in point 2 & then check if it has a stripe_failure_code field which is populated

What have you tried so far?

i tried to first filter : stripe_subscription_plan_id (Firebase doc field) == BasicPlanMontlyStripe (Project Constant) & then sort items on edited field. However this also gives the same result of null

Tried to get item at index = = 0 . However, this returns index out of range

Did you check FlutterFlow's Documentation for this topic?
No
3