fix index out of bounds

This commit is contained in:
Xavier Léauté 2014-07-28 09:59:21 -07:00
parent 7aef463457
commit df7a39a682
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ public class QueryableIndexStorageAdapter implements StorageAdapter
if (multiValueRow.size() == 0) {
return null;
} else if (multiValueRow.size() == 1) {
return columnVals.lookupName(multiValueRow.get(1));
return columnVals.lookupName(multiValueRow.get(0));
} else {
final String[] strings = new String[multiValueRow.size()];
for (int i = 0 ; i < multiValueRow.size() ; i++) {