Add null check to logging
@@ -129,9 +129,11 @@ public class Logging {
* Message to print.
*/
private void log(Level level, String message) {
+ if (message != null) {
lgConsole.log(level, message);
lgFile.log(level, message);
}
+ }
/**
* Set the console's logging level.
