Use stringutils to create 'from' string for non-blank mass edits

This commit is contained in:
Owen Stephens 2018-06-22 23:29:35 +01:00
parent d309af7f1a
commit 0e954bdb68

View File

@ -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);