Fix NPE
This commit is contained in:
parent
31b69c486c
commit
c907e023d3
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue