spring-projects / spring-projects/spring-data-rest
JsonParser's getValueAsString will return NULL when using @DBRef [DATAREST-303]
Open
@odrotbohm is already working on this.
Since Dec 31, 2020.
type: bug
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Owen Wu opened DATAREST-303 and commented
If I use @DBRef on any properties when PersistentEntityJackson2Module deserialize that will throw NPE because the JsonParser's getValueAsString at line 356 return NULL value
Affects: 2.1 RC1 (Dijkstra)
Reference URL: http://forum.spring.io/forum/data-rest/748943-jsonparser-s-getvalueasstring-will-return-null-when-using-dbref
Attachments:
- spring-data-rest.zip (15.06 kB)
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.