Ignore:
Timestamp:
2015-08-12T12:39:24+02:00 (9 years ago)
Author:
nokutu
Message:

Fix tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java

    r31487 r31488  
    132132    }
    133133    createHatchTexture();
    134 
    135     MapillaryMainDialog.getInstance()
    136         .getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW)
    137         .put(KeyStroke.getKeyStroke("DELETE"), "MapillaryDel");
    138     MapillaryMainDialog.getInstance().getActionMap()
    139         .put("MapillaryDel", new DeleteImageAction());
     134    if (Main.main != null) {
     135      MapillaryMainDialog.getInstance()
     136          .getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW)
     137          .put(KeyStroke.getKeyStroke("DELETE"), "MapillaryDel");
     138      MapillaryMainDialog.getInstance().getActionMap()
     139          .put("MapillaryDel", new DeleteImageAction());
     140    }
    140141
    141142    if (Main.main != null)
Note: See TracChangeset for help on using the changeset viewer.