spring-projects / spring-projects/spring-data-keyvalue

Filter null entities from being returned by findAll

Open
#357 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.