Changeset 18291 in josm for trunk/src


Ignore:
Timestamp:
2021-10-26T00:57:23+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21463 - Fix parsing of empty parenthesis pairs in search expressions (patch by Woazboat)

File:
1 edited

Legend:

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

    r18208 r18291  
    21292129            if (!tokenizer.readIfEqual(Token.RIGHT_PARENT))
    21302130                throw new SearchParseError(Token.RIGHT_PARENT, tokenizer.nextToken());
    2131             return expression;
     2131            return expression != null ? expression : Always.INSTANCE;
    21322132        } else if (tokenizer.readIfEqual(Token.NOT)) {
    21332133            return new Not(parseFactor(tr("Missing operator for NOT")));
Note: See TracChangeset for help on using the changeset viewer.