From a0812c57518d148a4b4c52ae7bc40c476db4b2ab Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Sat, 2 Jun 2012 21:00:30 +0000 Subject: [PATCH] Be slightly more tolerant of weird spreadsheet data git-svn-id: http://google-refine.googlecode.com/svn/trunk@2501 7d457c2a-affb-35e4-300a-418c747d4874 --- main/src/com/google/refine/importers/OdsImporter.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main/src/com/google/refine/importers/OdsImporter.java b/main/src/com/google/refine/importers/OdsImporter.java index b739a502f..1fc927ffe 100644 --- a/main/src/com/google/refine/importers/OdsImporter.java +++ b/main/src/com/google/refine/importers/OdsImporter.java @@ -204,6 +204,13 @@ public class OdsImporter extends TabularImportingParserBase { value = cell.getPercentageValue(); } else if ("string".equals(cellType)) { value = cell.getStringValue(); + } else if (cellType == null) { + value = cell.getDisplayText(); + if ("".equals(value)) { + value = null; + } else { + logger.info("Null cell type with non-empty value: " + value); + } } else { logger.info("Unexpected cell type " + cellType); value = cell.getDisplayText();