From 2fd1a7c6cb61c94edf2b3454757c3e41e70fe12e Mon Sep 17 00:00:00 2001 From: Rene Schneider Date: Fri, 23 Mar 2018 12:26:41 +0100 Subject: [PATCH] possible fix for #185: eliminated modification of existing list I was not able to actually reproduce the issue in my testing environment, so I cannot be actually sure that this fixes it, but it is pretty much the only situation that could cause it, so... --- .../gebit/integrity/remoting/entities/setlist/SetList.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/de.gebit.integrity.remoting/src/de/gebit/integrity/remoting/entities/setlist/SetList.java b/de.gebit.integrity.remoting/src/de/gebit/integrity/remoting/entities/setlist/SetList.java index 45dd89b5a..65dbb1033 100644 --- a/de.gebit.integrity.remoting/src/de/gebit/integrity/remoting/entities/setlist/SetList.java +++ b/de.gebit.integrity.remoting/src/de/gebit/integrity/remoting/entities/setlist/SetList.java @@ -588,14 +588,17 @@ protected String calculateFullyQualifiedBaseName(SetListEntry anEntry) { */ public void setEntryInExecutionReference(Integer anEntryReference) { entryInExecutionReference = anEntryReference; - pathOfEntriesInExecution.clear(); + List tempNewPathOfEntriesInExecution = new ArrayList(); + if (anEntryReference != null) { SetListEntry tempCurrent = resolveReference(anEntryReference); while (tempCurrent != null) { - pathOfEntriesInExecution.add(tempCurrent); + tempNewPathOfEntriesInExecution.add(tempCurrent); tempCurrent = getParent(tempCurrent); } } + + pathOfEntriesInExecution = tempNewPathOfEntriesInExecution; } public SetListEntry getEntryInExecution() {