Skip to content

Conversation

rhodgkins
Copy link
Contributor

Description

If you've created a DataSnapshot with a null value, you should be able to call methods on that object.
Will be fixed with an incoming upstream fix in firebase-functions.

Code sample

See commit

rhodgkins added a commit to rhodgkins/firebase-functions that referenced this pull request Jan 13, 2025
rhodgkins added a commit to rhodgkins/firebase-functions that referenced this pull request Feb 4, 2025
@cabljac cabljac moved this to Review Requested [PR] in [Cloud] Extensions + Functions May 19, 2025
github-merge-queue bot pushed a commit to firebase/firebase-functions that referenced this pull request Oct 8, 2025
* Fixed issue calling DataSnapshot methods with null data (see firebase/firebase-functions-test#254)

* Added test cases for fix

* Better fix for calling DataSnapshot#val() with null data

* Add changelog.

---------

Co-authored-by: Daniel Lee <[email protected]>
Co-authored-by: Daniel Lee <[email protected]>
@github-project-automation github-project-automation bot moved this from Review Requested [PR] to Done in [Cloud] Extensions + Functions Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant