Changeset 5637 in josm


Ignore:
Timestamp:
2012-12-27T19:08:31+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #8296 - NPE when checking a relation with a preset without role types

File:
1 edited

Legend:

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

    r5196 r5637  
    160160                        }
    161161                    }
    162                     if (ri != null) {
     162                    if (ri != null && r.types != null) {
    163163                        Collection<OsmPrimitive> wrongTypes = new LinkedList<OsmPrimitive>();
    164164                        if (!r.types.contains(PresetType.WAY)) {
Note: See TracChangeset for help on using the changeset viewer.