Fix NPE
This commit is contained in:
parent
be1bb0e257
commit
c503c78c70
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