diff --git a/DataExtractionOSM/src/net/osmand/swing/MapPanel.java b/DataExtractionOSM/src/net/osmand/swing/MapPanel.java index 071710be91..19a8f80db6 100644 --- a/DataExtractionOSM/src/net/osmand/swing/MapPanel.java +++ b/DataExtractionOSM/src/net/osmand/swing/MapPanel.java @@ -69,6 +69,9 @@ public class MapPanel extends JPanel implements IMapDownloaderCallback { for(TileSourceTemplate t : list){ map.put(t.getName(), t); } + if (!dir.isDirectory()) { + return map; + } for(File f : dir.listFiles()){ if(f.isDirectory()){ if(map.containsKey(f.getName())){