From ef115930682635ff4e478eedfdf4b555d656ab53 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Thu, 28 May 2020 13:50:44 +0200 Subject: [PATCH] JoinedEntity.links defined as empty list by default --- .../java/eu/dnetlib/dhp/oa/provision/model/JoinedEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/oa/provision/model/JoinedEntity.java b/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/oa/provision/model/JoinedEntity.java index e29ec9d19..7681fa76f 100644 --- a/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/oa/provision/model/JoinedEntity.java +++ b/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/oa/provision/model/JoinedEntity.java @@ -2,13 +2,14 @@ package eu.dnetlib.dhp.oa.provision.model; import java.io.Serializable; +import java.util.ArrayList; import java.util.List; public class JoinedEntity implements Serializable { private TypedRow entity; - private List links; + private List links = new ArrayList<>(); public JoinedEntity() { }