Changeset 12129 in josm for trunk


Ignore:
Timestamp:
2017-05-13T00:38:22+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #14776 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r11713 r12129  
    481481
    482482            if (isDblClick) {
    483                 Main.getLayerManager().getEditDataSet().setSelected(sel);
     483                DataSet ds = Main.getLayerManager().getEditDataSet();
     484                if (ds != null) {
     485                    ds.setSelected(sel);
     486                }
    484487                if (Main.pref.getBoolean("validator.autozoom", false)) {
    485488                    AutoScaleAction.zoomTo(sel);
Note: See TracChangeset for help on using the changeset viewer.