From 6b3a20dc460f1a3c437304c91efa815869d4631d Mon Sep 17 00:00:00 2001 From: David Huynh Date: Tue, 9 Mar 2010 20:57:46 +0000 Subject: [PATCH] Check for null confidence string. git-svn-id: http://google-refine.googlecode.com/svn/trunk@259 7d457c2a-affb-35e4-300a-418c747d4874 --- src/main/java/com/metaweb/gridworks/ProjectMetadata.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/metaweb/gridworks/ProjectMetadata.java b/src/main/java/com/metaweb/gridworks/ProjectMetadata.java index 44a8a0fb6..4b5628fad 100644 --- a/src/main/java/com/metaweb/gridworks/ProjectMetadata.java +++ b/src/main/java/com/metaweb/gridworks/ProjectMetadata.java @@ -166,7 +166,9 @@ public class ProjectMetadata implements Jsonizable { } public void setEncodingConfidence(String confidence) { - this.setEncodingConfidence(Integer.parseInt(confidence)); + if (confidence != null) { + this.setEncodingConfidence(Integer.parseInt(confidence)); + } } public int getEncodingConfidence() {