12
Awlex
7y

You mustn't pass null to this function that accepts nullable strings

Comments
  • 2
    Friend: Pick a number between 1 and 10.
    You: 4
    Friend: Except 4.
  • 1
    Is it just me or does everyone who sees "Don't pass it ____" instantly hack something together to see what happens / what error is thrown when that thing is actually passed?
  • 1
    @jmclemo6 usually just an error.

    In most cases a backend validation test will prevent registering the data to the DB.

    As for the firebase documentation, as i understand it a nullable string is the data type. However null cannot be saved as a field in the DB (as it is probably queried for search results and other pages)

    I see nothing wrong in the description.
  • 1
    @bioDan there is nothing wrong with it. I mostly just check what happens, so if I have something strange happening later on I might already know what a possibly cryptic error message is trying to tell me.
Add Comment