Skip to content

Handle null DTO projection conversion for primitive types #2395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
meistermeier opened this issue Oct 5, 2021 · 1 comment
Closed

Handle null DTO projection conversion for primitive types #2395

meistermeier opened this issue Oct 5, 2021 · 1 comment
Assignees
Labels
type: bug A general bug

Comments

@meistermeier
Copy link
Collaborator

As raised here https://community.neo4j.com/t/sdn6-using-projection-persistence-with-primitive-fields/45177 SDN will fail with a NPE if the target field would be defined as a primitive.

@meistermeier meistermeier self-assigned this Oct 5, 2021
@meistermeier meistermeier changed the title Handle null conversion for primitive types Handle null DTO projection conversion for primitive types Oct 5, 2021
@meistermeier meistermeier added the type: bug A general bug label Oct 5, 2021
@meistermeier meistermeier added this to the 6.1.6 (2021.0.6) milestone Oct 5, 2021
meistermeier added a commit that referenced this issue Oct 5, 2021
@seabamirum
Copy link

This issue still occurs in 6.2.2. The NPE is now on line 77:

PreferredConstructor> constructor = targetEntity
.getPersistenceConstructor();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants