Skip to content

Commit

Permalink
this can't happen: guarded by ReaderUtil.getUtf8LengthAndCharLength
Browse files Browse the repository at this point in the history
  • Loading branch information
kosak committed Nov 4, 2024
1 parent 66cd8a7 commit 267986b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ private static void takeNCharactersInCharset(ByteSlice src, ByteSlice dest, int
}
numCharsToTake -= tempInt.intValue();
current += utf8Length;
if (current > src.end()) {
throw new RuntimeException("Data error: partial UTF-8 sequence found in input");
}
}
dest.reset(src.data(), cellBegin, current);
src.reset(src.data(), current, src.end());
Expand Down

0 comments on commit 267986b

Please sign in to comment.