Ticket #19436: 19436.patch

File 19436.patch, 820 bytes (added by taylor.smock, 13 months ago)
  • src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java

     
    407407    public static JsonArray getHandlersInfoAsJSON(Collection<String> handlers) {
    408408        JsonArrayBuilder json = Json.createArrayBuilder();
    409409        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            }
    411414        }
    412415        return json.build();
    413416    }