diff --git a/webprotege-gwt-ui-server/src/main/java/edu/stanford/bmir/protege/web/server/dispatch/DispatchServlet.java b/webprotege-gwt-ui-server/src/main/java/edu/stanford/bmir/protege/web/server/dispatch/DispatchServlet.java index e7dff1b5f..2816c85e2 100644 --- a/webprotege-gwt-ui-server/src/main/java/edu/stanford/bmir/protege/web/server/dispatch/DispatchServlet.java +++ b/webprotege-gwt-ui-server/src/main/java/edu/stanford/bmir/protege/web/server/dispatch/DispatchServlet.java @@ -105,9 +105,9 @@ private CompletableFuture createCompletableFutureForBatchAction(ImmutableL var innerExecutionResult = ActionExecutionResult.get(innerResult); resultList.set(index, innerExecutionResult); } catch (ActionExecutionException e) { - resultList.add(ActionExecutionResult.get(e)); + resultList.set(index, ActionExecutionResult.get(e)); } catch (PermissionDeniedException e) { - resultList.add(ActionExecutionResult.get(e)); + resultList.set(index, ActionExecutionResult.get(e)); } }); futures.add(future);