diff --git a/src/main/java/net/catenax/traceability/assets/InMemoryAssetsRepository.java b/src/main/java/net/catenax/traceability/assets/InMemoryAssetsRepository.java index c8ca98d4f4..af383dcaec 100644 --- a/src/main/java/net/catenax/traceability/assets/InMemoryAssetsRepository.java +++ b/src/main/java/net/catenax/traceability/assets/InMemoryAssetsRepository.java @@ -69,7 +69,7 @@ private List getAssetsWithUpdatedNamesForPage(PagedListHolder orig List sourceAssets = originPageListHolder.getSource(); for (int i = originPageListHolder.getFirstElementOnPage(), j = 0; i < originPageListHolder.getLastElementOnPage() + 1; i++, j++) { - sourceAssets.add(i, updatedAssets.get(j)); + sourceAssets.set(i, updatedAssets.get(j)); } return sourceAssets;