logstash/log4j-jsonevent-layout — pull request #48 by rlindooren (2014-11-26 09:43:42+00:00)
Title: Preventing NPE after (de)serialization of a LoggingEvent

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.