Handle legacy projects which have an empty slot 0 for the column model (old off-by-one bug)
git-svn-id: http://google-refine.googlecode.com/svn/trunk@2346 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
fe7bf1d1f0
commit
5dad4d6a0b
@ -253,7 +253,11 @@ public class RecordModel implements Jsonizable {
|
||||
String keyColName = columnModel.getColumnByCellIndex(g.keyCellIndex).getName();
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int ci : g.cellIndices) {
|
||||
sb.append(columnModel.getColumnByCellIndex(ci).getName()).append(',');
|
||||
Column col = columnModel.getColumnByCellIndex(ci);
|
||||
if (col != null) {
|
||||
// Old projects have col 0 slot empty
|
||||
sb.append(col.getName()).append(',');
|
||||
}
|
||||
}
|
||||
logger.trace("KeyedGroup " + keyColName + "::" + sb.toString());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user