Changeset 5869 in josm for trunk


Ignore:
Timestamp:
2013-04-15T19:51:56+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8609 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r5775 r5869  
    361361     *
    362362     * @param from  the source data set
     363     * @param progressMonitor the progress monitor, can be {@code null}
    363364     */
    364365    public void mergeFrom(final DataSet from, ProgressMonitor progressMonitor) {
     
    407408            Main.map.mapView.repaint();
    408409        }
    409         Main.map.conflictDialog.warnNumNewConflicts(numNewConflicts);
     410        // warn about new conflicts
     411        if (numNewConflicts > 0 && Main.map != null && Main.map.conflictDialog != null) {
     412            Main.map.conflictDialog.warnNumNewConflicts(numNewConflicts);
     413        }
    410414    }
    411415
Note: See TracChangeset for help on using the changeset viewer.