Skip to content

Commit

Permalink
possible fix for #185: eliminated modification of existing list
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
S1artie committed Mar 23, 2018
1 parent 7e85800 commit 2fd1a7c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,17 @@ protected String calculateFullyQualifiedBaseName(SetListEntry anEntry) {
*/
public void setEntryInExecutionReference(Integer anEntryReference) {
entryInExecutionReference = anEntryReference;
pathOfEntriesInExecution.clear();
List<SetListEntry> tempNewPathOfEntriesInExecution = new ArrayList<SetListEntry>();

if (anEntryReference != null) {
SetListEntry tempCurrent = resolveReference(anEntryReference);
while (tempCurrent != null) {
pathOfEntriesInExecution.add(tempCurrent);
tempNewPathOfEntriesInExecution.add(tempCurrent);
tempCurrent = getParent(tempCurrent);
}
}

pathOfEntriesInExecution = tempNewPathOfEntriesInExecution;
}

public SetListEntry getEntryInExecution() {
Expand Down

0 comments on commit 2fd1a7c

Please sign in to comment.