Skip to content
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

Preventing NPE after (de)serialization of a LoggingEvent #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rlindooren
Copy link

When making use of a SocketAppender logging events are serialized and de-serialized. Because the throwable field on ThrowableInformation is transient it will not be available for further processing after de-serialization. Causing a NullPointerException.

My change checks if the throwable field is not null before trying to use it.

LoggingEvent after it has been serialized and de-serialized (happens
when using a SocketAppender)
@hbellahc
Copy link

Hello
@lusis, @electrical, @jordansissel, @pyr

Can you please accept this PR ?

Thanks

@Resousse
Copy link

Hello,
Is it possible to merge? This PR solves a problem with the lib when using Jboss :(

Thanks!

@pyr
Copy link
Contributor

pyr commented Jan 10, 2019

LGTM, can I ask for a rebase to a single commit?

Cheers,
Pierre-Yves

@rlindooren
Copy link
Author

Dusting off the 🕸 after 4 years 😁.

You could do a squash when merging.

Otherwise I can remove commit a323bb5 about ignoring files. I'd rather not combine it with the other commit as it is something different.

Let me know.

@Resousse
Copy link

Hello @rlindooren @pyr ,

Naive question : Once you release the 1.8 with this change, will it be available on Maven automatically?

Thanks,

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.

4 participants