You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CompositeJsonEncoder throws a NullPointerException if not started when encode() is called. The null pointer is caused by lineSeparatorBytes being null at line 116.
This unsafe behaviour is particularly annoying when the encoder is used with an OutputStreamAppender like the console or file appenders: the appender turns itself off whenever an exception is thrown when processing a log event (should the exception be thrown by the encoder or the output stream).
CompositeJsonEncoder
throws aNullPointerException
if not started whenencode()
is called. The null pointer is caused bylineSeparatorBytes
being null at line 116.This unsafe behaviour is particularly annoying when the encoder is used with an
OutputStreamAppender
like the console or file appenders: the appender turns itself off whenever an exception is thrown when processing a log event (should the exception be thrown by the encoder or the output stream).Note that this issue is already fixed thanks to PR #472 (see line #74 in CompositeJsonEncoder.)
The text was updated successfully, but these errors were encountered: