HBASE-17941 CellArrayMap#getCell may throw IndexOutOfBoundsException
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
ea3a27b18d
commit
33dadc1a94
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue