Minor fix: avoid potential UnsupportedOperationException when starting various tools
The control panel and status were aborting on startup because an error
was detected and added to an unmodifiable list.
| | |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading configuration: " + oe, oe)); |
| | | } |
| | | exceptions.addAll(errors); |
| | | exceptions = Collections.unmodifiableList(exceptions); |
| | | exceptions = Collections.unmodifiableList(new ArrayList<Exception>(errors)); |
| | | administrativeUsers = Collections.unmodifiableSet(alternateBindDNs); |
| | | listeners = Collections.unmodifiableSet(connectionHandlers); |
| | | backends = Collections.unmodifiableSet(backendDescriptors); |