SOLR-5479: Deal with null message in SolrLogLayout

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1543966 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-11-20 21:59:56 +00:00
parent 4f1ed4ee86
commit 51a45c9f4d
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ public class SolrLogLayout extends Layout {
public String _format(LoggingEvent event) {
String message = (String) event.getMessage();
if (message == null) {
message = "";
}
StringBuilder sb = new StringBuilder(message.length() + 80);
long now = event.timeStamp;