Doug
 · Founder at Reffo

Did FF change things with null errors?

Database & APIs

Half of my functions are not working at the moment because of Firebase null errors. To be clear, they all worked like 2 weeks ago.

Example: Check for discount code.

User adds a discount code "code"

I then check for the document admin/documentID/codes/code
But it throws a null error because there is no such document as collection/doc/collection/code

This worked fine like 2 weeks ago but now it no longer works. Any ideas what happened / How do I return a location not found so I can then handle it and say "This code does not exist, please try again?

What have you tried so far?

Conditional logic.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
4 replies