Ignore:
Timestamp:
2018-06-23T11:59:58+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16417 - Downloading primitive with id "0" causes IllegalArgumentException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/SimplePrimitiveIdTest.java

    r11104 r13969  
    6363        assertEquals("[relation 123, relation 124, way 345, way 346, node 789]",
    6464                SimplePrimitiveId.fuzzyParse("foo relation/123-24 and way/345-346 but also node/789").toString());
     65        assertEquals("[]",
     66                SimplePrimitiveId.fuzzyParse("foo relation/0 bar").toString());
    6567    }
    6668
     
    9395        assertEquals("[node 234, node 235]", SimplePrimitiveId.multipleFromString("node/234-235").toString());
    9496        assertEquals("[node 998, node 999, node 1000, node 1001]", SimplePrimitiveId.multipleFromString("node/998-1001").toString());
     97        assertEquals("[]", SimplePrimitiveId.multipleFromString("node/0").toString());
    9598    }
    9699
Note: See TracChangeset for help on using the changeset viewer.