mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
05.44.2013 5100085273f41f4cdb2d839e2d95b43503ba4f1d
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Utils.java
@@ -64,12 +64,16 @@
        private final List<V> results;
        private AccumulatingResultHandler(final int size, final ResultHandler<List<V>> handler) {
            if (size <= 0) {
            if (size < 0) {
                throw new IllegalStateException();
            }
            this.latch = new AtomicInteger(size);
            this.results = new ArrayList<V>(size);
            this.handler = handler;
            if (size == 0) {
                // Invoke immediately.
                handler.handleResult(results);
            }
        }
        @Override