Changes between Initial Version and Version 2 of Ticket #22156
- Timestamp:
- 2022-06-21T17:23:22+02:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22156
- Property Owner changed from to
- Property Status new → assigned
- Property Summary Dailog Filter: "nth%: 0" - and the error occurred → ArithmeticException: / by zero in org.openstreetmap.josm.data.osm.search.SearchCompiler$Nth.match
-
Ticket #22156 – Description
initial v2 1 1 ==== What steps will reproduce the problem? 2 2 3 1. filter: " nth%: 0" and the error occurred !3 1. filter: "`nth%: 0`" and the error occurred ! 4 4 5 5 ==== What is the expected result? … … 19 19 In the documentation I found nth and nth% (without explanation what the "%" stands for). 20 20 I checked some options: 21 - " nth%: 2"22 - " nth%: 1"23 **- " nth%: 0" - and the error occurred**21 - "`nth%: 2`" 22 - "`nth%: 1`" 23 **- "`nth%: 0`" - and the error occurred** 24 24 25 25 --------------------------------------------------- … … 28 28 --------------------------------------------------- 29 29 josm download via overpass: 30 30 {{{ 31 31 [bbox: 47.5, 7.6, 48, 9 ]; 32 32 way[railway=rail]->.w1; … … 35 35 (._;>;); 36 36 out meta; 37 37 }}} 38 38 ---------------------------------------------------- 39 39 used filters: 40 40 41 filter #1: " ways: 1"41 filter #1: "`ways: 1`" 42 42 (with: E: on, H: on, I: off, M: "A") 43 43 44 filter #2: "child (type:way & railway:) & ways: 2- & -railway=switch" 44 filter #2: "`child (type:way & railway:) & ways: 2- & -railway=switch`" 45 45 (with: E: on, H: off, I: on, M: "A") 46 46


