Skip to content

Differ explicit epoch from null in timestamp conversion.#236

Merged
seime merged 1 commit into
entur:developfrom
bonitao:develop
Sep 8, 2022
Merged

Differ explicit epoch from null in timestamp conversion.#236
seime merged 1 commit into
entur:developfrom
bonitao:develop

Conversation

@bonitao

@bonitao bonitao commented Sep 4, 2022

Copy link
Copy Markdown
Contributor

I got a null point exception when I was mapping a pojo with a field with an explicit Instant.EPOCH value to a protocol buffer where the field of same name was a Timestamp.

It seems that the decision of mapping epoch to null was deliberate, but it did not feel correct to me. See the added test cases, and let me know if you would prefer a different fix.

@seime seime merged commit 3c834b0 into entur:develop Sep 8, 2022
@seime

seime commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

Thanks @bonitao

@seime

seime commented Sep 9, 2022

Copy link
Copy Markdown
Contributor

Reverted. Should be revisited when #177 is worked on

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.

2 participants