From c03b223a789c18b4a328fd88323b5bc5ebc7ddbc Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Tue, 9 Mar 2010 22:43:49 +0000 Subject: [PATCH] fixed another NPE bug git-svn-id: http://google-refine.googlecode.com/svn/trunk@262 7d457c2a-affb-35e4-300a-418c747d4874 --- .../java/com/metaweb/gridworks/clustering/knn/kNNClusterer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/metaweb/gridworks/clustering/knn/kNNClusterer.java b/src/main/java/com/metaweb/gridworks/clustering/knn/kNNClusterer.java index 98eed7a01..b35cd1e9d 100644 --- a/src/main/java/com/metaweb/gridworks/clustering/knn/kNNClusterer.java +++ b/src/main/java/com/metaweb/gridworks/clustering/knn/kNNClusterer.java @@ -114,7 +114,7 @@ public class kNNClusterer extends Clusterer { } public boolean visit(Project project, int rowIndex, Row row, boolean contextual) { - Cell cell = row.cells.get(_colindex); + Cell cell = row.getCell(_colindex); if (cell != null && cell.value != null) { Object v = cell.value; String s = (v instanceof String) ? ((String) v) : v.toString().intern();