| 1 | diff --git a/src/org/openstreetmap/josm/actions/OpenFileAction.java b/src/org/openstreetmap/josm/actions/OpenFileAction.java
|
|---|
| 2 | index cc8d8a8..62c0b3d 100644
|
|---|
| 3 | --- a/src/org/openstreetmap/josm/actions/OpenFileAction.java
|
|---|
| 4 | +++ b/src/org/openstreetmap/josm/actions/OpenFileAction.java
|
|---|
| 5 | @@ -176,7 +176,9 @@ public class OpenFileAction extends DiskAccessAction {
|
|---|
| 6 |
|
|---|
| 7 | @Override
|
|---|
| 8 | protected void finish() {
|
|---|
| 9 | - Main.map.repaint();
|
|---|
| 10 | + if (Main.map != null) {
|
|---|
| 11 | + Main.map.repaint();
|
|---|
| 12 | + }
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | protected void alertFilesNotMatchingWithImporter(Collection<File> files, FileImporter importer) {
|
|---|