Changeset 10794 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-08-13T17:22:01+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13333 - add robustness against regex pattern failing to handle extended unicode characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r10792 r10794  
    616616                } catch (PatternSyntaxException e) {
    617617                    throw new ParseError(tr(rxErrorMsg, e.getPattern(), e.getIndex(), e.getMessage()), e);
    618                 } catch (IllegalArgumentException e) {
     618                } catch (IllegalArgumentException | StringIndexOutOfBoundsException e) {
    619619                    throw new ParseError(tr(rxErrorMsgNoPos, value, e.getMessage()), e);
    620620                }
Note: See TracChangeset for help on using the changeset viewer.