Skip to content

Conversation

jenssuhr
Copy link

Fixes the behavior of Filters.and and Filters.or, which both accept nullable Bson values, but a filter that actually contains a null value throws a NullpointerException in toBsonDocument.
This PR filters the null values before passing them to AndFilter/OrFilter.

@jyemin jyemin added the external label Feb 4, 2025
@jenssuhr jenssuhr force-pushed the JAVA-5775-and-or-npe branch from 4d2ab1b to b2cf7b8 Compare September 12, 2025 12:54
@jenssuhr jenssuhr requested a review from a team as a code owner September 12, 2025 12:54
@jenssuhr jenssuhr requested review from rozza and removed request for a team September 12, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants