Revision: 5259
http://sourceforge.net/p/jump-pilot/code/5259
Author: edso
Date: 2016-12-15 11:26:16 +0000 (Thu, 15 Dec 2016)
Log Message:
-----------
make sure there is a message to be logged instead of NULL
Modified Paths:
--------------
core/trunk/src/com/vividsolutions/jump/workbench/Logger.java
Modified: core/trunk/src/com/vividsolutions/jump/workbench/Logger.java
===================================================================
--- core/trunk/src/com/vividsolutions/jump/workbench/Logger.java
2016-12-15 10:30:48 UTC (rev 5258)
+++ core/trunk/src/com/vividsolutions/jump/workbench/Logger.java
2016-12-15 11:26:16 UTC (rev 5259)
@@ -136,9 +136,12 @@
throw new IllegalArgumentException(
"Logger: either message or throwable must be given. "+element);
- // use throwable's message if null message given
- if (msg == null)
+ // use throwable's data if null message was given
+ if (msg == null) {
msg = t.getMessage();
+ if (msg == null || msg.isEmpty() )
+ msg = t.getClass().getName();
+ }
logger.log(logLevel, msg + msgAppend, t);
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel