Not to crash if we're passed a null message.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@772 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-05-31 22:19:07 +00:00
parent 970049d402
commit 27a5717048
@@ -1,5 +1,5 @@
//
// $Id: DefaultLogProvider.java,v 1.8 2002/05/31 21:19:58 mdb Exp $
// $Id: DefaultLogProvider.java,v 1.9 2002/05/31 22:19:07 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -92,6 +92,11 @@ public class DefaultLogProvider implements LogProvider
}
buf.append(LEVEL_CHARS[level]).append(" ");
// make sure the message isn't wack
if (message == null) {
message = "null";
}
// let the formatting continue to influence the module name and
// then it will be turned off when underlining is turned off