From 0e954bdb68f1a099d48a69790d30e485aabce181 Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Fri, 22 Jun 2018 23:29:35 +0100 Subject: [PATCH] Use stringutils to create 'from' string for non-blank mass edits --- .../com/google/refine/operations/cell/MassEditOperation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/com/google/refine/operations/cell/MassEditOperation.java b/main/src/com/google/refine/operations/cell/MassEditOperation.java index a37374ab7..02921b23d 100644 --- a/main/src/com/google/refine/operations/cell/MassEditOperation.java +++ b/main/src/com/google/refine/operations/cell/MassEditOperation.java @@ -59,6 +59,7 @@ import com.google.refine.model.changes.CellChange; import com.google.refine.operations.EngineDependentMassCellOperation; import com.google.refine.operations.OperationRegistry; import com.google.refine.util.ParsingUtilities; +import com.google.refine.util.StringUtils; public class MassEditOperation extends EngineDependentMassCellOperation { final protected String _expression; @@ -259,7 +260,7 @@ public class MassEditOperation extends EngineDependentMassCellOperation { newCell = new Cell(fromErrorTo, (cell != null) ? cell.recon : null); } } else if (ExpressionUtils.isNonBlankData(v)) { - String from = v.toString(); + String from = StringUtils.toString(v); Serializable to = fromTo.get(from); if (to != null) { newCell = new Cell(to, (cell != null) ? cell.recon : null);