Changeset 8724 in josm


Ignore:
Timestamp:
2015-09-03T22:55:04+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11813 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/Test.java

    r8490 r8724  
    196196     */
    197197    public void visit(Collection<OsmPrimitive> selection) {
    198         progressMonitor.setTicksCount(selection.size());
     198        if (progressMonitor != null) {
     199            progressMonitor.setTicksCount(selection.size());
     200        }
    199201        for (OsmPrimitive p : selection) {
    200202            if (isPrimitiveUsable(p)) {
    201203                p.accept(this);
    202204            }
    203             progressMonitor.worked(1);
     205            if (progressMonitor != null) {
     206                progressMonitor.worked(1);
     207            }
    204208        }
    205209    }
Note: See TracChangeset for help on using the changeset viewer.