Skip to content

Use default values for primitive attributes when Graph properties are unset. #2348

@fnordian

Description

@fnordian

I am upgrading my existing application to sdn6. There's a boolean field in my entities that is not set for some of the nodes.

Reading those nodes fails with NullPointerException when unboxing null to boolean.

I tried to trace that problem and to me it seems that DefaultNeo4jConversionService has extra handling for null-values (valueIsLiteralNullOrNullValue) and that causes that no converters are called.

So the case cannot be caught through a custom converter. Is there another way to handle null-values gracefully?

This problem did not exist with OGM

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions