From e5c6dda178da19b33dd856477a4d1ee68d470ce7 Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Tue, 31 Aug 2010 19:33:05 +0000 Subject: [PATCH] Fixed Issue-116 git-svn-id: http://google-refine.googlecode.com/svn/trunk@1243 7d457c2a-affb-35e4-300a-418c747d4874 --- main/src/com/google/gridworks/exporters/CsvExporter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/src/com/google/gridworks/exporters/CsvExporter.java b/main/src/com/google/gridworks/exporters/CsvExporter.java index 0520a7f99..9fb1d0846 100644 --- a/main/src/com/google/gridworks/exporters/CsvExporter.java +++ b/main/src/com/google/gridworks/exporters/CsvExporter.java @@ -56,8 +56,10 @@ public class CsvExporter implements Exporter{ } public boolean visit(Project project, int rowIndex, Row row) { - String[] cols = new String[project.columnModel.columns.size()]; - String[] vals = new String[row.cells.size()]; + int size = project.columnModel.columns.size(); + + String[] cols = new String[size]; + String[] vals = new String[size]; int i = 0; for (Column col : project.columnModel.columns) {