Skip to content

Commit

Permalink
'nuther missing range check on _setup._types
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffclick committed Aug 7, 2014
1 parent e0a5780 commit 601213c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/water/parser/CsvParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public CsvParser clone(){
assert _str.get_buf() != bits;
_str.addBuff(bits);
}
if(_setup._types != null && _str.equals(_setup._types[colIdx]._naStr))
if(_setup._types != null && colIdx < _setup._types.length && _str.equals(_setup._types[colIdx]._naStr))
dout.addInvalidCol(colIdx);
else
dout.addStrCol(colIdx, _str);
Expand Down

0 comments on commit 601213c

Please sign in to comment.