From 275dac976e7b3f3a1691ee4342819365b31b7786 Mon Sep 17 00:00:00 2001 From: Jacky Date: Mon, 7 Aug 2017 21:53:35 -0400 Subject: [PATCH] fix #137 --- main/src/com/google/refine/model/RecordModel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/com/google/refine/model/RecordModel.java b/main/src/com/google/refine/model/RecordModel.java index 9e40a2647..2e259283b 100644 --- a/main/src/com/google/refine/model/RecordModel.java +++ b/main/src/com/google/refine/model/RecordModel.java @@ -155,7 +155,8 @@ public class RecordModel implements Jsonizable { for (int g = 0; g < groupCount; g++) { KeyedGroup group = keyedGroups.get(g); - if (!ExpressionUtils.isNonBlankData(row.getCellValue(group.keyCellIndex))) { + if (!ExpressionUtils.isNonBlankData(row.getCellValue(keyedGroups.get(0).keyCellIndex)) && + !ExpressionUtils.isNonBlankData(row.getCellValue(group.keyCellIndex))) { int contextRowIndex = lastNonBlankRowsByGroup[g]; if (contextRowIndex >= 0) { for (int dependentCellIndex : group.cellIndices) {