[ISSUE #359]Fix logging check period (#360)

This commit is contained in:
what-a-good-jungle
2018-07-16 16:59:29 +08:00
committed by von gosling
parent b054a9d4c1
commit 76233ed8b7
@@ -966,7 +966,7 @@ public class LoggingBuilder {
rollingCalendar.setType(i);
Date next = new Date(rollingCalendar.getNextCheckMillis(epoch));
String r1 = simpleDateFormat.format(next);
if (r0.equals(r1)) {
if (r0 != null && r1 != null && !r0.equals(r1)) {
return i;
}
}