HBASE-17941 CellArrayMap#getCell may throw IndexOutOfBoundsException

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
s9514171 2017-04-20 14:54:52 +08:00 committed by Chia-Ping Tsai
parent ea3a27b18d
commit 33dadc1a94
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class CellArrayMap extends CellFlatMap {
@Override
protected Cell getCell(int i) {
if( (i < minCellIdx) && (i >= maxCellIdx) ) return null;
if( (i < minCellIdx) || (i >= maxCellIdx) ) return null;
return block[i];
}
}