From dce42400d49a743d523ae45d88fc1395164a105a Mon Sep 17 00:00:00 2001 From: David Huynh Date: Tue, 23 Feb 2010 17:47:34 +0000 Subject: [PATCH] Fixed bug introduced while trying to delay constructing the candidates arrays in Recon objects. git-svn-id: http://google-refine.googlecode.com/svn/trunk@130 7d457c2a-affb-35e4-300a-418c747d4874 --- src/main/java/com/metaweb/gridworks/model/Recon.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/metaweb/gridworks/model/Recon.java b/src/main/java/com/metaweb/gridworks/model/Recon.java index 9296c688d..ab6138079 100644 --- a/src/main/java/com/metaweb/gridworks/model/Recon.java +++ b/src/main/java/com/metaweb/gridworks/model/Recon.java @@ -73,7 +73,9 @@ public class Recon implements Serializable, HasFields, Jsonizable { System.arraycopy(features, 0, r.features, 0, features.length); - r.candidates.addAll(candidates); + if (candidates != null) { + r.candidates = new ArrayList(candidates); + } r.judgment = judgment; r.match = match; return r;