From 6f2d15da05f2f14468f782c95314e583cfa07cf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20F=C3=B6rster?= Date: Tue, 28 Mar 2023 14:51:06 +0200 Subject: [PATCH] Update dc-model/src/main/java/de/digitalcollections/model/identifiable/entity/Collection.java Co-authored-by: Matthias Lindinger --- .../model/identifiable/entity/Collection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<>(); }