spring-projects / spring-projects/spring-data-rest
NullPointerException when mapping is null (such as when used with spring data cassandra repositories)
Open
@odrotbohm is already working on this.
Since Jan 4, 2022.
status: feedback-provided
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
"mapping" can be null here, causing the .isExported() to throw a NPE.
I thought i was using the strategy to only include annotated repositories and that would not happen (spring.data.rest.detection-strategy=annotated). I did not intend for this repository to actually be included in the profile. but it got to this point in the code and it null pointer'ed.
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.
Assessment
This issue has not been assessed yet.