Changeset 10664 in josm for trunk/src/org


Ignore:
Timestamp:
2016-07-28T23:17:17+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13234 - NPE

File:
1 edited

Legend:

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

    r10626 r10664  
    225225            String ostr = tOffset.getText();
    226226            int semicolon = ostr.indexOf(';');
    227             if (semicolon >= 0 && semicolon + 1 < ostr.length()) {
     227            if (layer != null && semicolon >= 0 && semicolon + 1 < ostr.length()) {
    228228                try {
    229229                    // here we assume that Double.parseDouble() needs '.' as a decimal separator
Note: See TracChangeset for help on using the changeset viewer.