Index: trunk/src/org/openstreetmap/josm/tools/Territories.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/Territories.java	(revision 15567)
+++ trunk/src/org/openstreetmap/josm/tools/Territories.java	(revision 15569)
@@ -147,11 +147,13 @@
     public static Map<String, String> getNationalTaginfoUrls(LatLon ll) {
         Map<String, String> result = new TreeMap<>();
-        for (String code : iso3166Cache.entrySet().parallelStream().distinct()
-            .filter(e -> Boolean.TRUE.equals(e.getValue().get(ll)))
-            .map(Entry<String, GeoPropertyIndex<Boolean>>::getKey)
-            .collect(Collectors.toSet())) {
-            String taginfo = taginfoCache.get(code);
-            if (taginfo != null) {
-                result.put(code, taginfo);
+        if (iso3166Cache != null) {
+            for (String code : iso3166Cache.entrySet().parallelStream().distinct()
+                .filter(e -> Boolean.TRUE.equals(e.getValue().get(ll)))
+                .map(Entry<String, GeoPropertyIndex<Boolean>>::getKey)
+                .collect(Collectors.toSet())) {
+                String taginfo = taginfoCache.get(code);
+                if (taginfo != null) {
+                    result.put(code, taginfo);
+                }
             }
         }
