Skip to content

Commit

Permalink
Check nullability in CheckpointEntryIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed May 27, 2022
1 parent 429464c commit 2db4430
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,16 +532,19 @@ private String getString(Block block, int position)

private long getLong(Block block, int position)
{
checkArgument(!block.isNull(position));
return block.getLong(position, 0);
}

private int getInt(Block block, int position)
{
checkArgument(!block.isNull(position));
return block.getInt(position, 0);
}

private byte getByte(Block block, int position)
{
checkArgument(!block.isNull(position));
return block.getByte(position, 0);
}

Expand Down

0 comments on commit 2db4430

Please sign in to comment.