Changeset 18232 in josm


Ignore:
Timestamp:
2021-09-27T11:41:56+02:00 (3 years ago)
Author:
GerdP
Message:

fix #20903: Incorrect and duplicate warning "Relation type is unknown"

  • don't show the message if relation has no type
File:
1 edited

Legend:

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

    r18208 r18232  
    155155                    .primitives(n)
    156156                    .build());
    157         } else if (allroles.isEmpty()) {
     157        } else if (n.hasKey("type") && allroles.isEmpty()) {
    158158            errors.add(TestError.builder(this, Severity.OTHER, RELATION_UNKNOWN)
    159159                    .message(tr("Relation type is unknown"))
Note: See TracChangeset for help on using the changeset viewer.