Closed
Description
Hello,
Like in #44
Same thing on another method for us whith a NPE on an int compare:
java.lang.NullPointerException
at co.elastic.logging.JsonUtils.quoteAsString(JsonUtils.java:63)
at co.elastic.logging.EcsJsonSerializer.serializeFormattedMessage(EcsJsonSerializer.java:79)
In your code the null message is not tested in the JsonUtils.quoteAsString :
public static void serializeFormattedMessage(StringBuilder builder, String message) {
builder.append(""message":"");
JsonUtils.quoteAsString(message, builder);
builder.append("", ");
}
Thanks to you ;)