From c907e023d31a39a9e41e051de6cc37f1e4a7276b Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 26 May 2018 11:30:14 +0200 Subject: [PATCH] Fix NPE --- .../net/osmand/plus/resources/IncrementalChangesManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/resources/IncrementalChangesManager.java b/OsmAnd/src/net/osmand/plus/resources/IncrementalChangesManager.java index 9c965ab78b..fba620ff0b 100644 --- a/OsmAnd/src/net/osmand/plus/resources/IncrementalChangesManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/IncrementalChangesManager.java @@ -94,6 +94,9 @@ public class IncrementalChangesManager { RegionUpdate monthRu = regionUpdateFiles.monthUpdates.get(month); while (it.hasNext()) { RegionUpdate ru = it.next(); + if(ru == null) { + continue; + } if (ru.obfCreated < dateCreated || (monthRu != null && ru.obfCreated < monthRu.obfCreated)) { log.info("Delete overlapping day update " + ru.file.getName());