From 318bb541859c9af22610816a207155745d27a13e Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Thu, 4 Apr 2019 19:09:05 +0100 Subject: [PATCH] Use getValue when getting value of a cell --- .../src/org/openrefine/wikidata/editing/NewItemLibrary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/wikidata/src/org/openrefine/wikidata/editing/NewItemLibrary.java b/extensions/wikidata/src/org/openrefine/wikidata/editing/NewItemLibrary.java index 5f0b0590e..534beafea 100644 --- a/extensions/wikidata/src/org/openrefine/wikidata/editing/NewItemLibrary.java +++ b/extensions/wikidata/src/org/openrefine/wikidata/editing/NewItemLibrary.java @@ -134,8 +134,8 @@ public class NewItemLibrary { ReconConfig config = column.getReconConfig(); if (config instanceof StandardReconConfig) { StandardReconConfig stdConfig = (StandardReconConfig)config; - if (cell instanceof (String)) { - stdConfig.computeFeatures(recon, cell.getValue()); + if (cell.getValue() instanceof String) { + stdConfig.computeFeatures(recon, (String) cell.getValue()); } } }