From b9fa100d316ca411fdf337954c648ebbe23d9e4d Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Sat, 27 Nov 2010 17:54:01 +0000 Subject: [PATCH] Don't try to save a null encoding git-svn-id: http://google-refine.googlecode.com/svn/trunk@1936 7d457c2a-affb-35e4-300a-418c747d4874 --- .../google/refine/commands/project/CreateProjectCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/src/com/google/refine/commands/project/CreateProjectCommand.java b/main/src/com/google/refine/commands/project/CreateProjectCommand.java index 1ea010a51..5b664de25 100644 --- a/main/src/com/google/refine/commands/project/CreateProjectCommand.java +++ b/main/src/com/google/refine/commands/project/CreateProjectCommand.java @@ -484,7 +484,9 @@ public class CreateProjectCommand extends Command { } else { // TODO: How do we set character encoding here? // Things won't work right if it's not set, so pick some arbitrary values - options.setProperty("encoding", encoding); + if (encoding != null) { + options.setProperty("encoding", encoding); + } options.setProperty("encoding_confidence", "0"); ((StreamImporter) importer).read(rawInputStream, project, metadata, options); }