Ignore:
Timestamp:
2016-01-15T00:26:24+01:00 (4 years ago)
Author:
Don-vip
Message:

checkstyle + add basic unit test

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java

    r9453 r9454  
    2828 * An UI widget for displaying differences in the coordinates of two
    2929 * {@link HistoryNode}s.
    30  *
     30 * @since 2243
    3131 */
    3232public class CoordinateInfoViewer extends JPanel {
     
    327327        private final Updater updater;
    328328
    329         public MapViewer(HistoryBrowserModel model) {
     329        MapViewer(HistoryBrowserModel model) {
    330330            this.updater = new Updater(model, PointInTimeType.REFERENCE_POINT_IN_TIME);
    331331            setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java

    r9403 r9454  
    105105        referenceRelationMemberTableModel = new DiffTableModel();
    106106
    107         OsmDataLayer editLayer = Main.main.getEditLayer();
    108         if (editLayer != null) {
    109             editLayer.data.addDataSetListener(this);
     107        if (Main.main != null) {
     108            OsmDataLayer editLayer = Main.main.getEditLayer();
     109            if (editLayer != null) {
     110                editLayer.data.addDataSetListener(this);
     111            }
    110112        }
    111113        MapView.addLayerChangeListener(this);
Note: See TracChangeset for help on using the changeset viewer.