Skip to content

Fix for issue #92 : when trying to serialize null, serialize it as th… #93

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
Sep 29, 2020

Conversation

nhurion
Copy link
Contributor

@nhurion nhurion commented Sep 10, 2020

…e string "null"

When trying to serialize a CharSequence that is null, serialize it as the string null.
To avoid null checks propagation.

@cla-checker-service
Copy link

cla-checker-service bot commented Sep 10, 2020

💚 CLA has been signed

@apmmachine
Copy link
Contributor

apmmachine commented Sep 10, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Started by user Felix Barnsteiner, Replayed #2]

  • Start Time: 2020-09-29T07:49:29.779+0000

  • Duration: 6 min 47 sec

Test stats 🧪

Test Results
Failed 0
Passed 105
Skipped 4
Total 109

@nhurion
Copy link
Contributor Author

nhurion commented Sep 10, 2020

I tried to sign the CLA multiple times, always having session timeout.

@felixbarny felixbarny linked an issue Sep 10, 2020 that may be closed by this pull request
@felixbarny
Copy link
Member

Thanks for the PR ❤️

Could you add a test case for using a null value in co.elastic.logging.EcsJsonSerializer#serializeFormattedMessage?

Hm, maybe try to sign the CLA again tomorrow.

…t as the string "null" actually fix the issue and add a unit test to confirm
@nhurion
Copy link
Contributor Author

nhurion commented Sep 14, 2020

I added a unit test, and actually fixed the issue now.
For the CLA I downloaded the signed document so I assume it is in order now.
I tried to sign the CLA wit another e-mail address.

@nhurion
Copy link
Contributor Author

nhurion commented Sep 15, 2020

Tried CLA again, dunno what more I can do.

@nhurion
Copy link
Contributor Author

nhurion commented Sep 16, 2020

Is there any way to make this thing move forward? This bug is really problematic as it prevent normal error flow.

@nhurion
Copy link
Contributor Author

nhurion commented Sep 18, 2020

I think the CLA passed this time

@nhurion
Copy link
Contributor Author

nhurion commented Sep 24, 2020

I don't know what else to do to make this check pass. Anyone can help?

@felixbarny
Copy link
Member

Hey, I just returned from PTO.

I've let the CLA check run again but it seems like it did not work.

Please make sure you're using the email address that's used in git (https://patch-diff.githubusercontent.com/raw/elastic/ecs-logging-java/pull/93.patch) and that this email is also associated with your GitHub account (https://github.com/settings/emails).

@nhurion
Copy link
Contributor Author

nhurion commented Sep 29, 2020

I associated the email and signed with that email. Hopefully this one will work.

@felixbarny
Copy link
Member

It did work! 🎉

@felixbarny felixbarny merged commit 47c1067 into elastic:master Sep 29, 2020
@felixbarny
Copy link
Member

Thank you for your contribution!

I've released a new version: https://github.com/elastic/ecs-logging-java/releases/tag/v0.5.2

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.

ecs logging can throw an NPE on null exception message
3 participants