Fix: NullPointerException

This commit is contained in:
Laurent Clouet
2020-05-13 14:42:58 +02:00
parent 26155a28dc
commit 36e32ab168

View File

@@ -57,7 +57,7 @@ public class Log {
private void append(String level_, String msg_) {
if (msg_.equals("") == false) {
String line = this.dateFormat.format(new java.util.Date()) + " (" + level_ + ") " + msg_;
if (this.checkpoints.containsKey(this.lastCheckPoint)) {
if (this.checkpoints.containsKey(this.lastCheckPoint) && this.checkpoints.get(this.lastCheckPoint) != null) {
this.checkpoints.get(this.lastCheckPoint).add(line);
}
if (this.printStdOut == true) {