Unexpected null value when using custom function on page

Actions & Logic

In flutterflow during page load i am doing a query collection from firestore and storing it in action output variable. then on the same page i am populating a text field with a value that is the output of a custom function. the input to the custom function is the collection i stored in action output variable. When i test run the app, the page shows unexpected null value with red background and stack track.

What have you tried so far?

I have double checked that the collection has valid non values and I have tested the custom function with similar data.

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