public LogHandler[] getLogHandlers() {
        LogHandler[] h = new LogHandler[handlers.size()];
        return handlers.toArray(h);
    }
Make defensive copy and return array of LogHandlers.
logserver/src/main/java/com/yahoo/logserver/LogDispatcher.java