Commit 5d7ea55c authored by zeroleak's avatar zeroleak

fix NullpointerException when only 1 interpretation

parent ae3a7006
......@@ -61,9 +61,16 @@ public class Utils {
public static void logProgressDone(String progressId, long target, String msg) {
Progress progress = progressLast.remove(progressId);
progressResult.add(progress);
if (progress != null) {
progressResult.add(progress);
}
if (log.isDebugEnabled()) {
String str = progress.done(target, msg);
String str;
if (progress != null) {
str = progress.done(target, msg);
} else {
str = "[" + progressId + "] (no iteration) " + msg;
}
logMemory(str);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment