diff --git a/dc-model/src/main/java/de/digitalcollections/model/identifiable/entity/Collection.java b/dc-model/src/main/java/de/digitalcollections/model/identifiable/entity/Collection.java index 33786378..52e3b802 100644 --- a/dc-model/src/main/java/de/digitalcollections/model/identifiable/entity/Collection.java +++ b/dc-model/src/main/java/de/digitalcollections/model/identifiable/entity/Collection.java @@ -87,7 +87,7 @@ public int hashCode() { @Override protected void init() { super.init(); - if (entities == null) entities = new ArrayList<>(); + if (entities == null) entities = new ArrayList<>(0); if (node == null) node = new Node<>(); }