Changeset 12472 in josm
- Timestamp:
- 2017-07-13T21:31:24+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/remotecontrol/handler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
r11746 r12472 280 280 toSelect.clear(); 281 281 for (String item : args.get("select").split(",")) { 282 try { 283 toSelect.add(SimplePrimitiveId.fromString(item)); 284 } catch (IllegalArgumentException ex) { 285 Main.warn(ex, "RemoteControl: invalid selection '" + item + "' ignored"); 282 if (!item.isEmpty()) { 283 try { 284 toSelect.add(SimplePrimitiveId.fromString(item)); 285 } catch (IllegalArgumentException ex) { 286 Main.warn(ex, "RemoteControl: invalid selection '" + item + "' ignored"); 287 } 286 288 } 287 289 } -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadObjectHandler.java
r10627 r12472 98 98 ps.clear(); 99 99 for (String i : (args != null ? args.get("objects") : "").split(",\\s*")) { 100 try { 101 ps.add(SimplePrimitiveId.fromString(i)); 102 } catch (IllegalArgumentException e) { 103 Main.warn(e, "RemoteControl: invalid selection '"+i+"' ignored."); 100 if (!i.isEmpty()) { 101 try { 102 ps.add(SimplePrimitiveId.fromString(i)); 103 } catch (IllegalArgumentException e) { 104 Main.warn(e, "RemoteControl: invalid selection '"+i+"' ignored."); 105 } 104 106 } 105 107 }
Note:
See TracChangeset
for help on using the changeset viewer.