Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NoteImporter.java
r9748 r9797 38 38 try (InputStream is = Compression.getUncompressedFileInputStream(file)) { 39 39 final NoteLayer layer = loadLayer(is, file, file.getName(), progressMonitor); 40 if ( !Main.map.mapView.hasLayer(layer)) {40 if (Main.map == null || !Main.map.mapView.hasLayer(layer)) { 41 41 GuiHelper.runInEDT(new Runnable() { 42 42 @Override
Note:
See TracChangeset
for help on using the changeset viewer.