Changeset 17781 in josm for trunk


Ignore:
Timestamp:
2021-04-14T20:00:39+02:00 (4 years ago)
Author:
simon04
Message:

see #20744, see #20764 - MapCSS: robustness in Selector.matches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r17583 r17781  
    1818import java.util.function.IntFunction;
    1919import java.util.function.IntSupplier;
    20 import java.util.regex.PatternSyntaxException;
    2120import java.util.stream.Collectors;
    2221
     
    657656                try {
    658657                    if (!c.applies(env)) return false;
    659                 } catch (PatternSyntaxException e) {
    660                     Logging.log(Logging.LEVEL_ERROR, "PatternSyntaxException while applying condition" + c + ':', e);
     658                } catch (RuntimeException e) {
     659                    Logging.log(Logging.LEVEL_ERROR, "Exception while applying condition" + c + ':', e);
    661660                    return false;
    662661                }
Note: See TracChangeset for help on using the changeset viewer.