Changeset 13314 in josm


Ignore:
Timestamp:
2018-01-13T02:10:46+01:00 (3 months ago)
Author:
Don-vip
Message:

fix #15733 - catch TokenMgrError when parsing invalid validator mapcss files

File:
1 edited

Legend:

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

    r13195 r13314  
    6161import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser;
    6262import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException;
     63import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.TokenMgrError;
    6364import org.openstreetmap.josm.io.CachedFile;
    6465import org.openstreetmap.josm.io.IllegalDataException;
     
    776777                Logging.warn(tr("Failed to add {0} to tag checker", i));
    777778                Logging.log(Logging.LEVEL_WARN, ex);
    778             } catch (ParseException ex) {
     779            } catch (ParseException | TokenMgrError ex) {
    779780                Logging.warn(tr("Failed to add {0} to tag checker", i));
    780781                Logging.warn(ex);
     
    845846            try {
    846847                tagChecker.addMapCSS(rule.url);
    847             } catch (IOException | ParseException e) {
     848            } catch (IOException | ParseException | TokenMgrError e) {
    848849                Logging.warn(e);
    849850            }
Note: See TracChangeset for help on using the changeset viewer.