Ignore:
Timestamp:
2019-01-31T09:57:29+01:00 (5 years ago)
Author:
GerdP
Message:

fix #17274: Empty line in ignorederrors.cfg causes reader to stop

File:
1 edited

Legend:

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

    r14732 r14754  
    232232                boolean isFirstLine = true;
    233233                String line;
    234                 while ((line = reader.readLine()) != null && (tagcheckerfile || !line.isEmpty())) {
    235                     if (line.startsWith("#")) {
     234                while ((line = reader.readLine()) != null) {
     235                    if (line.isEmpty()) {
     236                        // ignore
     237                    } else if (line.startsWith("#")) {
    236238                        if (line.startsWith("# JOSM TagChecker")) {
    237239                            tagcheckerfile = true;
Note: See TracChangeset for help on using the changeset viewer.