Skip to content

Commit

Permalink
Fix Missing maps calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanPyrohivskyi committed Jan 8, 2025
1 parent c545738 commit baa1f0d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import net.osmand.map.WorldRegion;
import net.osmand.util.Algorithms;
import net.osmand.util.CollectionUtils;
import net.osmand.util.MapAlgorithms;
import net.osmand.util.MapUtils;

public class MissingMapsCalculator {
Expand Down Expand Up @@ -274,7 +273,7 @@ public void close() throws IOException {

private boolean isRoadOnlyMap(String regionName) {
BinaryMapDataObject o = cachedCountries.get(regionName);
if (o != null) {
if (o != null && or != null) {
boolean hasMapType = or.isDownloadOfType(o, OsmandRegions.MAP_TYPE);
boolean hasRoadsType = or.isDownloadOfType(o, OsmandRegions.ROADS_TYPE);
boolean hasMapJoinType = or.isDownloadOfType(o, OsmandRegions.MAP_JOIN_TYPE);
Expand Down

0 comments on commit baa1f0d

Please sign in to comment.