- Timestamp:
- 2020-07-14T20:01:42+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java
r16587 r16767 408 408 JsonArrayBuilder json = Json.createArrayBuilder(); 409 409 for (String s : Utils.firstNonNull(handlers, RequestProcessor.handlers.keySet())) { 410 json.add(getHandlerInfoAsJSON(s)); 410 JsonObject infoAsJson = getHandlerInfoAsJSON(s); 411 if (infoAsJson != null) { 412 json.add(infoAsJson); 413 } 411 414 } 412 415 return json.build(); … … 420 423 public static JsonObject getHandlerInfoAsJSON(String cmd) { 421 424 RequestHandler handler; 425 if (cmd == null) { 426 return null; 427 } 428 if (!cmd.startsWith("/")) { 429 cmd = "/" + cmd; 430 } 422 431 try { 423 432 Class<?> c = handlers.get(cmd);
Note:
See TracChangeset
for help on using the changeset viewer.