Skip to content

Commit

Permalink
Copy over lists when syncing lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Dec 14, 2024
1 parent ab1826c commit a6da0ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ public void syncProperties(PropertyStorage dying) {
property=clonedSet;
}
if(ArrayList.class.isInstance(property)) {
ArrayList<String> clonedSet = new ArrayList<String>();
clonedSet.addAll((ArrayList<String>)property);
property=clonedSet;
Object clonedSet = map.get(o);
ArrayList<String> newList = clonedSet==null?new ArrayList<String>():(ArrayList<String>)clonedSet;
newList.addAll((ArrayList<String>)property);
property=newList;
}
set(o,property);
}
Expand Down

0 comments on commit a6da0ff

Please sign in to comment.