From c1510b6fb5515bfee86842eafdb7df55f68b088f Mon Sep 17 00:00:00 2001 From: Tim Bernhard Date: Wed, 27 Jan 2021 14:40:02 +0100 Subject: [PATCH] Fix part of #33: recursive clone of Specimen parts lead to StackOverflow --- .../harvard/mcz/imagecapture/entity/SpecimenPartAttribute.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/harvard/mcz/imagecapture/entity/SpecimenPartAttribute.java b/src/main/java/edu/harvard/mcz/imagecapture/entity/SpecimenPartAttribute.java index 1592801..3870d19 100644 --- a/src/main/java/edu/harvard/mcz/imagecapture/entity/SpecimenPartAttribute.java +++ b/src/main/java/edu/harvard/mcz/imagecapture/entity/SpecimenPartAttribute.java @@ -177,7 +177,7 @@ public void setAttributeDate(Date prepTypeAttributeDate) { @Override public Object clone() { SpecimenPartAttribute newAttr = new SpecimenPartAttribute( - (SpecimenPart)specimenPartId.clone(), attributeType, attributeValue, + null, attributeType, attributeValue, attributeUnits, attributeRemark, attributeDeterminer, (Date)attributeDate.clone()); return newAttr;