Skip to content

Handle NullNode for optional attributes in Jackson CloudEventDeserializer #432

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

Merged
merged 2 commits into from
Dec 21, 2021

Conversation

pierDipi
Copy link
Member

In getOptionalStringNode we should handle JsonNodes that are
instances of NullNode.

Fixes #430

…izer

In `getOptionalStringNode` we should handle `JsonNode`s that are
instances of `NullNode`.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@pierDipi pierDipi added this to the 2.3 milestone Dec 21, 2021
Signed-off-by: Pierangelo Di Pilato <[email protected]>
@pierDipi pierDipi merged commit cc78625 into cloudevents:master Dec 21, 2021
@pierDipi pierDipi deleted the SDKJAVA-430_Handle-NullNode branch December 21, 2021 10:22
pierDipi added a commit to pierDipi/sdk-java that referenced this pull request Dec 21, 2021
…izer (cloudevents#432)

In `getOptionalStringNode` we should handle `JsonNode`s that are
instances of `NullNode`.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@pierDipi
Copy link
Member Author

Cherry pick for 2.2.1-SNAPSHOT: #433

pierDipi added a commit that referenced this pull request Dec 21, 2021
…izer (#432) (#433)

In `getOptionalStringNode` we should handle `JsonNode`s that are
instances of `NullNode`.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deserialization fails when subject is null
2 participants