Details
Description
Here is a part of skipKVsNewerThanReadpoint method:
hfs.next(); setCurrentCell(hfs.getKeyValue()); if (this.stopSkippingKVsIfNextRow && getComparator().compareRows(cur.getRowArray(), cur.getRowOffset(), cur.getRowLength(), startKV.getRowArray(), startKV.getRowOffset(), startKV.getRowLength()) > 0) {
If hfs has no more KVs, cur will be set to Null and on on the next step will throw NPE.