This commit is contained in:
Victor Shcherb 2018-05-26 11:30:14 +02:00
parent 31b69c486c
commit c907e023d3

View file

@ -94,6 +94,9 @@ public class IncrementalChangesManager {
RegionUpdate monthRu = regionUpdateFiles.monthUpdates.get(month); RegionUpdate monthRu = regionUpdateFiles.monthUpdates.get(month);
while (it.hasNext()) { while (it.hasNext()) {
RegionUpdate ru = it.next(); RegionUpdate ru = it.next();
if(ru == null) {
continue;
}
if (ru.obfCreated < dateCreated || if (ru.obfCreated < dateCreated ||
(monthRu != null && ru.obfCreated < monthRu.obfCreated)) { (monthRu != null && ru.obfCreated < monthRu.obfCreated)) {
log.info("Delete overlapping day update " + ru.file.getName()); log.info("Delete overlapping day update " + ru.file.getName());