Changeset 14561 in josm for trunk


Ignore:
Timestamp:
2018-12-15T12:59:18+01:00 (5 months ago)
Author:
GerdP
Message:

fix #17112 regression from r14461

Location:
trunk
Files:
2 edited

Legend:

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

    r14214 r14561  
    20092009                }
    20102010            };
    2011         } catch (ParseException e) {
     2011        } catch (ParseException | IllegalArgumentException e) {
    20122012            throw new SearchParseError(tr("Failed to parse MapCSS selector"), e);
    20132013        }
  • trunk/test/unit/org/openstreetmap/josm/data/osm/search/SearchCompilerTest.java

    r14100 r14561  
    501501
    502502    /**
     503     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/17112">Bug #17112</a>.
     504     * @throws SearchParseError always
     505     */
     506    @Test(expected = SearchParseError.class)
     507    public void testTicket17112() throws SearchParseError {
     508        SearchSetting setting = new SearchSetting();
     509        setting.mapCSSSearch = true;
     510        setting.text = "w"; // partial input
     511        SearchCompiler.compile(setting);
     512    }
     513
     514    /**
    503515     * Test empty values.
    504516     * @throws SearchParseError never
Note: See TracChangeset for help on using the changeset viewer.