Allow for null items in @DbArray lists. (#1812)

* Added code to allow for null items in @DbArray lists.

* Test case for changing OneToMany collection by editing target bean.
This commit is contained in:
Ryszard Trojnacki
2019-09-11 15:30:32 +12:00
committed by Rob Bygrave
parent 8ae2ae7f8b
commit b329ae42db
3 changed files with 96 additions and 8 deletions
@@ -104,7 +104,8 @@ public class ScalarTypeArrayList extends ScalarTypeArrayBase<List> implements Sc
protected List fromArray(Object[] array1) {
List list = new ArrayList(array1.length);
for (Object element : array1) {
list.add(converter.toElement(element));
if(element == null ) list.add(null);
else list.add(converter.toElement(element));
}
return new ModifyAwareList(list);
}