spring-projects / spring-projects/spring-data-keyvalue
Filter null entities from being returned by findAll
Open
Nobody has claimed this yet.
type: bug
- Dominant language
- Java
- Stars
- 157
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
Right now, we filter the result if a type is being returned that is not assignable to the target type. If a query returns null, we should remove this item as well from the query to avoid null failures downstream.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the findAll entry point and its existing filtering of results whose types are not assignable to the target type. Add coverage for a query result containing null and verify that null entries are removed without causing downstream failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100