Ignore:
Timestamp:
2018-07-06T00:51:36+02:00 (18 months ago)
Author:
Don-vip
Message:

attempt to fix frequent errors of DrawActionTest.testTicket12011`: fix NPE seen when running the test manually

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r13809 r14003  
    265265
    266266    protected void writeUnlock(boolean locked) {
    267         if (locked) {
     267        if (locked && dataSet != null) {
    268268            // It shouldn't be possible for dataset to become null because
    269269            // method calling setDataset would need write lock which is owned by this thread
Note: See TracChangeset for help on using the changeset viewer.