Changeset 7350 in josm for trunk/src


Ignore:
Timestamp:
2014-07-31T02:10:02+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #10322 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r7033 r7350  
    8585        super.exitMode();
    8686        if (offsetDialog != null) {
    87             layer.setOffset(oldDx, oldDy);
     87            if (layer != null) {
     88                layer.setOffset(oldDx, oldDy);
     89            }
    8890            offsetDialog.setVisible(false);
    8991            offsetDialog = null;
Note: See TracChangeset for help on using the changeset viewer.