From edfa7d8445ac922076402e3c1946307caa9adb7d Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Fri, 19 Apr 2019 11:25:01 +0100 Subject: [PATCH] Skip unknown operations in ApplyOperationsCommand --- .../google/refine/commands/history/ApplyOperationsCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/com/google/refine/commands/history/ApplyOperationsCommand.java b/main/src/com/google/refine/commands/history/ApplyOperationsCommand.java index 2ed9298be..df93d964f 100644 --- a/main/src/com/google/refine/commands/history/ApplyOperationsCommand.java +++ b/main/src/com/google/refine/commands/history/ApplyOperationsCommand.java @@ -45,6 +45,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.refine.commands.Command; import com.google.refine.model.AbstractOperation; import com.google.refine.model.Project; +import com.google.refine.operations.UnknownOperation; import com.google.refine.process.Process; import com.google.refine.util.ParsingUtilities; @@ -79,7 +80,7 @@ public class ApplyOperationsCommand extends Command { protected void reconstructOperation(Project project, ObjectNode obj) throws IOException { AbstractOperation operation = ParsingUtilities.mapper.convertValue(obj, AbstractOperation.class); - if (operation != null) { + if (operation != null && !(operation instanceof UnknownOperation)) { try { Process process = operation.createProcess(project, new Properties());