Changeset 13334 in josm for trunk/src


Ignore:
Timestamp:
2018-01-16T23:43:53+01:00 (7 years ago)
Author:
Don-vip
Message:

fix NPE seen in unit tests

File:
1 edited

Legend:

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

    r13312 r13334  
    394394            event.getOldSelection().stream().forEach(x -> updatePreservedFlag(x, false));
    395395            event.getSelection().stream().forEach(x -> updatePreservedFlag(x, true));
    396             computeHelperLine();
    397             addHighlighting(event);
     396            if (MainApplication.getMap() != null) {
     397                computeHelperLine();
     398                addHighlighting(event);
     399            }
    398400        });
    399401    }
Note: See TracChangeset for help on using the changeset viewer.